mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 00:21:33 -07:00
Fix settings singleton
This commit is contained in:
parent
35cb3b6024
commit
173f1921a6
@ -145,11 +145,13 @@ namespace Bloxstrap
|
||||
bool showAlreadyRunningWarning = Process.GetProcessesByName(App.ProjectName).Length > 1;
|
||||
|
||||
var window = new UI.Elements.Settings.MainWindow(showAlreadyRunningWarning);
|
||||
window.Show();
|
||||
|
||||
// typically we'd use Show(), but we need to block to ensure IPL stays in scope
|
||||
window.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
App.Logger.WriteLine(LOG_IDENT, $"Found an already existing menu window");
|
||||
App.Logger.WriteLine(LOG_IDENT, "Found an already existing menu window");
|
||||
|
||||
var process = Utilities.GetProcessesSafe().Where(x => x.MainWindowTitle == Strings.Menu_Title).FirstOrDefault();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user