Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Apr 19, 2023
1 parent ab6afa3 commit 69900d9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clashN/clashN/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ 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 @@ -138,7 +137,6 @@ public MainWindowViewModel(ISnackbarMessageQueue snackbarMessageQueue)
Application.Current.Dispatcher.Invoke((Action)(() =>
{
ShowHideWindow(false);
blFirst = false;
}));
});
}
Expand Down Expand Up @@ -222,8 +220,7 @@ private void OnProgramStarted(object state, bool timeout)
}
}
if (!blFirst)
ShowHideWindow(true);
ShowHideWindow(true);
Locator.Current.GetService<ProfilesViewModel>()?.AddProfilesViaClipboard(true);
}));
Expand Down

0 comments on commit 69900d9

Please sign in to comment.