From eef3a8cce6fe14275fe9e8cb951a14171e0980d9 Mon Sep 17 00:00:00 2001 From: Robin Knoll Date: Thu, 8 Aug 2024 12:59:29 +0200 Subject: [PATCH 1/4] added a command to unselect all applications this is particularly useful on machines where many applications are running and you're only interested in the logs of one or a few of them. --- Loginator/MainWindow.xaml | 7 ++--- Loginator/ViewModels/LoginatorViewModel.cs | 31 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/Loginator/MainWindow.xaml b/Loginator/MainWindow.xaml index 6354f5c..db80d5e 100644 --- a/Loginator/MainWindow.xaml +++ b/Loginator/MainWindow.xaml @@ -29,9 +29,10 @@ - - - + + + + diff --git a/Loginator/ViewModels/LoginatorViewModel.cs b/Loginator/ViewModels/LoginatorViewModel.cs index bda1c26..709c066 100644 --- a/Loginator/ViewModels/LoginatorViewModel.cs +++ b/Loginator/ViewModels/LoginatorViewModel.cs @@ -370,6 +370,20 @@ public ICommand ClearAllCommand { return clearAllCommand; } } + + private ICommand unselectAllCommand; + public ICommand UnselectAllCommand + { + get + { + if (unselectAllCommand == null) + { + unselectAllCommand = new RelayCommand(UnselectAll, CanUnselectAll); + } + return unselectAllCommand; + } + } + private bool CanClearAll(LoginatorViewModel loginator) { return true; } @@ -383,6 +397,23 @@ public void ClearAll(LoginatorViewModel loginator) { }); } + private bool CanUnselectAll(LoginatorViewModel loginator) + { + return true; + } + public void UnselectAll(LoginatorViewModel loginator) + { + DispatcherHelper.CheckBeginInvokeOnUI(() => { + lock (ViewModelConstants.SYNC_OBJECT) + { + foreach (var application in this.Applications) + { + application.IsActive = false; + } + } + }); + } + private ICommand updateNumberOfLogsPerLevelCommand; public ICommand UpdateNumberOfLogsPerLevelCommand { get { From ad0c1ba2b2b79c4a335ef98c4e142558b2aec2cf Mon Sep 17 00:00:00 2001 From: Robin Knoll Date: Thu, 8 Aug 2024 14:47:31 +0200 Subject: [PATCH 2/4] fix button distance --- Loginator/MainWindow.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Loginator/MainWindow.xaml b/Loginator/MainWindow.xaml index db80d5e..9aaae1e 100644 --- a/Loginator/MainWindow.xaml +++ b/Loginator/MainWindow.xaml @@ -29,7 +29,7 @@ - + From 7aa4b6dd1f9597914a93dd60d7b6592366fed95d Mon Sep 17 00:00:00 2001 From: Robin Knoll Date: Thu, 8 Aug 2024 15:29:14 +0200 Subject: [PATCH 3/4] add some width to the main window so buttons don't overlap --- Loginator/MainWindow.xaml | 2 +- Loginator/Version.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Loginator/MainWindow.xaml b/Loginator/MainWindow.xaml index 9aaae1e..3266d52 100644 --- a/Loginator/MainWindow.xaml +++ b/Loginator/MainWindow.xaml @@ -4,7 +4,7 @@ xmlns:controls="clr-namespace:Loginator.Controls" DataContext="{Binding LoginatorViewModel, Source={StaticResource Locator}}" WindowStartupLocation="CenterScreen" - Title="Loginator" Height="600" Width="900" MinHeight="600" MinWidth="900"> + Title="Loginator" Height="600" Width="920" MinHeight="600" MinWidth="920"> diff --git a/Loginator/Version.txt b/Loginator/Version.txt index 1d191af..ecc1a2c 100644 --- a/Loginator/Version.txt +++ b/Loginator/Version.txt @@ -1,2 +1,2 @@ -versionCode=7 -versionName=1.6.0 \ No newline at end of file +versionCode=8 +versionName=1.6.1 \ No newline at end of file From 09bae4ce163dc58985fa3b8215a2b496fb1a74da Mon Sep 17 00:00:00 2001 From: Robin Knoll Date: Mon, 9 Sep 2024 09:55:39 +0200 Subject: [PATCH 4/4] increase versionCode --- Loginator/Version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Loginator/Version.txt b/Loginator/Version.txt index d194073..6f9d082 100644 --- a/Loginator/Version.txt +++ b/Loginator/Version.txt @@ -1,2 +1,2 @@ -versionCode=8 +versionCode=9 versionName=1.6.1