Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
topmost fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meetox80 committed Jun 29, 2023
1 parent 6e2eece commit 51a66ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/betterlauncher-nextgen/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ public partial class MainWindow : Window
#endregion

#region VersionLoading, Startup
public static MainWindow Instance;
public MainWindow()
{
InitializeComponent();
// Manage this window from other windows
Instance = this;
}

private async void Window_Loaded(object sender, RoutedEventArgs e)
Expand Down
3 changes: 1 addition & 2 deletions src/betterlauncher-nextgen/Windows/AccountWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ public AccountWindow()

private void Button_Click(object sender, RoutedEventArgs e)
{
MainWindow MainWindowFrame = new MainWindow();
MainWindowFrame.Topmost = false;
MainWindow.Instance.Topmost = false;
this.Hide();
}
}
Expand Down

0 comments on commit 51a66ad

Please sign in to comment.