diff --git a/src/MaaWpfGui/ViewModels/UI/RootViewModel.cs b/src/MaaWpfGui/ViewModels/UI/RootViewModel.cs index badfcfb202..7001e60d50 100644 --- a/src/MaaWpfGui/ViewModels/UI/RootViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/RootViewModel.cs @@ -90,6 +90,19 @@ namespace MaaWpfGui.ViewModels.UI set => SetAndNotify(ref _windowTitle, value); } + private double _progress; + + /// + /// Gets or sets the progress. + /// 0.0 to 1.0. + /// 置 0 以隐藏进度条. + /// + public double Progress + { + get => _progress; + set => SetAndNotify(ref _progress, value); + } + private bool _windowTitleScrollable = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.WindowTitleScrollable, bool.FalseString)); /// diff --git a/src/MaaWpfGui/Views/UI/RootView.xaml b/src/MaaWpfGui/Views/UI/RootView.xaml index e4281a9f3b..b739e4b83e 100644 --- a/src/MaaWpfGui/Views/UI/RootView.xaml +++ b/src/MaaWpfGui/Views/UI/RootView.xaml @@ -51,6 +51,9 @@ Foreground="{Binding WindowTopMostButtonForeground}" /> + + +