TechnicJelle / BlueMapGUI

A GUI wrapper around the BlueMap CLI, mainly to make using BlueMap easier to use on single player worlds.
4 stars 0 forks source link

Retrieve port to open at from process output #10

Closed TechnicJelle closed 2 months ago

TechnicJelle commented 2 months ago

Currently, the Open button is hardcoded to go to http://localhost:8100, but it should use the output of the CLI process to determine which URL to open. https://github.com/TechnicJelle/BlueMapGUI/blob/9f3926b8fc3735021ce290d977d5775b4cec0cfd/lib/control_panel.dart#L183

Instead of waiting for "Webserver started." message, wait for port message and save the port in the big state class. https://github.com/TechnicJelle/BlueMapGUI/blob/9f3926b8fc3735021ce290d977d5775b4cec0cfd/lib/control_panel.dart#L43-L57