mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix OpenSettings command: ensure Main Window hides before showing Settings
- Remove Dispatcher.UIThread.Post which might cause timing issues - Call Hide() before showing SettingsWindow to ensure proper focus and visibility transition
This commit is contained in:
parent
dda587493b
commit
19913fa1e6
1 changed files with 3 additions and 6 deletions
|
|
@ -381,12 +381,9 @@ public partial class MainViewModel : ObservableObject
|
|||
[RelayCommand]
|
||||
public void OpenSettings()
|
||||
{
|
||||
global::Avalonia.Threading.Dispatcher.UIThread.Post(() =>
|
||||
{
|
||||
var settingsWindow = new SettingsWindow();
|
||||
settingsWindow.Show();
|
||||
Hide();
|
||||
});
|
||||
Hide();
|
||||
var settingsWindow = new SettingsWindow();
|
||||
settingsWindow.Show();
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
|
|
|
|||
Loading…
Reference in a new issue