Merge pull request #189 from gnh1201/dev

Minor fixes for the context menus
This commit is contained in:
Namhyeon Go 2025-03-17 17:02:32 +09:00 committed by GitHub
commit 9cd4f2d744
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,12 +250,11 @@ namespace WelsonJS.Launcher
if (!Program.resourceServer.IsRunning()) if (!Program.resourceServer.IsRunning())
{ {
Program.resourceServer.Start(); Program.resourceServer.Start();
((ToolStripMenuItem)sender).Text = "Stop the code editor..."; ((ToolStripMenuItem)sender).Text = "Open the code editor...";
} }
else else
{ {
Program.resourceServer.Stop(); Program.OpenWebBrowser(Program.resourceServer.GetPrefix());
((ToolStripMenuItem)sender).Text = "Start the code editor...";
} }
} }
@ -267,7 +266,7 @@ namespace WelsonJS.Launcher
} }
else else
{ {
Process.Start(Program.resourceServer.GetPrefix()); Program.OpenWebBrowser(Program.resourceServer.GetPrefix());
} }
} }