From ab1ddbb6c5741c609108d997cd9f0c5b5eb1e8ea Mon Sep 17 00:00:00 2001 From: Sparrkle Date: Fri, 30 Sep 2022 09:58:33 +0900 Subject: [PATCH] Change ProgressBar Value to Nullable. --- Flow.Launcher.Plugin/Result.cs | 7 +------ Flow.Launcher/ResultListBox.xaml | 19 ++++++++++++------- Flow.Launcher/ViewModel/ResultViewModel.cs | 10 ++++++++++ .../Search/ResultManager.cs | 3 +-- 4 files changed, 24 insertions(+), 15 deletions(-) diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index f8c2c391f..136395467 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -201,12 +201,7 @@ 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 ProgressBarValue { get; set; } - - /// - /// Progress bar visibility Check - /// - public bool IsProgressBarVisible { get; set; } = false; + public int? ProgressBar { get; set; } /// /// Optionally set the color of the progress bar diff --git a/Flow.Launcher/ResultListBox.xaml b/Flow.Launcher/ResultListBox.xaml index 16f2555a9..80a4fc720 100644 --- a/Flow.Launcher/ResultListBox.xaml +++ b/Flow.Launcher/ResultListBox.xaml @@ -28,10 +28,6 @@ mc:Ignorable="d"> - - - -