Startoption -dev: lokale Test-Website (localhost:5080)

Eigene Anmeldung (settings.dev.json), bleibt bei Selbst-Installation und Update erhalten, DEV-Schild in der Oberflaeche.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 17:48:47 +01:00
co-authored by Claude Opus 5.5
parent b69b9638ff
commit 077e39fa8a
10 changed files with 46 additions and 9 deletions
+4 -2
View File
@@ -32,7 +32,8 @@ public sealed class MainForm : Form
ClientSize = new Size(1120, 700);
MinimumSize = new Size(900, 600);
StartPosition = FormStartPosition.CenterScreen;
LauncherLog.Info("BSO Launcher " + SelfUpdate.CurrentVersion + " gestartet");
LauncherLog.Info("BSO Launcher " + SelfUpdate.CurrentVersion + " gestartet" + (Api.Dev ? " (-dev)" : "") + ", Website " + Api.Base);
if (Api.Base != Api.BaseUrl) Text += " (DEV)";
try { Icon = Icon.ExtractAssociatedIcon(Environment.ProcessPath ?? Application.ExecutablePath); } catch { }
Controls.Add(web);
Load += async (_, _) => await InitWeb();
@@ -244,7 +245,8 @@ public sealed class MainForm : Form
version = SelfUpdate.CurrentVersion,
username = settings.Username,
loggedIn = settings.Token != null,
master = Api.Base
master = Api.Base,
dev = Api.Dev || Api.Base != Api.BaseUrl
};
// --- Konto