From 28f5e009a25b240cd41c968f4bf5d988415e55ce Mon Sep 17 00:00:00 2001
From: uye <99072975+ABA2396@users.noreply.github.com>
Date: Tue, 29 Oct 2024 02:56:41 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E7=8A=B6=E6=80=81?=
=?UTF-8?q?=E6=A0=8F=E6=98=BE=E7=A4=BA=E8=BF=9B=E5=BA=A6=E6=9D=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/MaaWpfGui/ViewModels/UI/RootViewModel.cs | 13 +++++++++++++
src/MaaWpfGui/Views/UI/RootView.xaml | 3 +++
2 files changed, 16 insertions(+)
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}" />
+
+
+