From 314f2d6a9077d7dc6f99656bcd2ccea8994dcf1d Mon Sep 17 00:00:00 2001 From: Sparrkle Date: Thu, 15 Sep 2022 15:57:05 +0900 Subject: [PATCH] Fixed Progressbar Binding Error (ProgressBar Value is Not Nullable) --- Flow.Launcher.Plugin/Result.cs | 7 ++++++- Flow.Launcher/ResultListBox.xaml | 2 +- Flow.Launcher/Themes/Base.xaml | 8 +++----- .../Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs | 5 +++-- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index 136395467..f8c2c391f 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -201,7 +201,12 @@ namespace Flow.Launcher.Plugin /// /// Progress bar display. Providing an int value between 0-100 will trigger the progress bar to be displayed on the result /// - public int? ProgressBar { get; set; } + public int ProgressBarValue { get; set; } + + /// + /// Progress bar visibility Check + /// + public bool IsProgressBarVisible { get; set; } = false; /// /// Optionally set the color of the progress bar diff --git a/Flow.Launcher/ResultListBox.xaml b/Flow.Launcher/ResultListBox.xaml index 2c78f9bab..be8bdde41 100644 --- a/Flow.Launcher/ResultListBox.xaml +++ b/Flow.Launcher/ResultListBox.xaml @@ -115,7 +115,7 @@ x:Name="progressbarResult" Foreground="{Binding Result.ProgressBarColor}" Style="{DynamicResource ProgressBarResult}" - Value="{Binding Result.ProgressBar}" /> + Value="{Binding Result.ProgressBarValue}" /> + +