Skip to content

Commit

Permalink
Merge pull request #312 from SpaceTimee/main
Browse files Browse the repository at this point in the history
bug fixes
  • Loading branch information
2dust committed Jan 2, 2024
2 parents 936602e + 3023971 commit 9887cb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clashN/clashN/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class MainWindowViewModel : ReactiveObject
private NoticeHandler? _noticeHandler;
private StatisticsHandler? statistics;
private readonly PaletteHelper _paletteHelper = new PaletteHelper();
private bool blFirst = true;

#region Views

Expand Down Expand Up @@ -137,6 +138,7 @@ public MainWindowViewModel(ISnackbarMessageQueue snackbarMessageQueue)
Application.Current.Dispatcher.Invoke((Action)(() =>
{
ShowHideWindow(false);
blFirst = false;
}));
});
}
Expand Down Expand Up @@ -220,7 +222,8 @@ private void OnProgramStarted(object state, bool timeout)
}
}
ShowHideWindow(true);
if (!blFirst)
ShowHideWindow(true);
Locator.Current.GetService<ProfilesViewModel>()?.AddProfilesViaClipboard(true);
}));
Expand Down

0 comments on commit 9887cb6

Please sign in to comment.