From 0a7a0bff4278909d759cf758c37a4a9a82c30e9a Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 24 Aug 2023 16:20:38 +0800 Subject: [PATCH] feature: show notification after saving patch successfully --- src/Resources/Locales/en_US.xaml | 2 ++ src/Resources/Locales/zh_CN.xaml | 2 ++ src/Views/ConfirmDialog.xaml | 6 ++---- src/Views/ConfirmDialog.xaml.cs | 22 +++++++++++++++++--- src/Views/Widgets/Histories.xaml.cs | 1 + src/Views/Widgets/Stashes.xaml.cs | 2 -- src/Views/Widgets/Welcome.xaml.cs | 1 - src/Views/Widgets/WorkingCopyChanges.xaml.cs | 2 ++ 8 files changed, 28 insertions(+), 10 deletions(-) diff --git a/src/Resources/Locales/en_US.xaml b/src/Resources/Locales/en_US.xaml index d71f24d0..f5fc5d01 100644 --- a/src/Resources/Locales/en_US.xaml +++ b/src/Resources/Locales/en_US.xaml @@ -15,6 +15,7 @@ FILTER Optional. SELECT FOLDER + NOTICE URL : Git Repository URL @@ -536,4 +537,5 @@ This field is required You are removing repository '{0}'. Are you sure to continue? You are trying to clear all stashes. Are you sure to continue? + Patch has been saved successfully! \ No newline at end of file diff --git a/src/Resources/Locales/zh_CN.xaml b/src/Resources/Locales/zh_CN.xaml index b01417c2..d0999df0 100644 --- a/src/Resources/Locales/zh_CN.xaml +++ b/src/Resources/Locales/zh_CN.xaml @@ -14,6 +14,7 @@ 过滤 选填 选择文件夹 + 系统提示 仓库地址 : 远程仓库地址 @@ -535,4 +536,5 @@ 内容未填写! 正在将 '{0}' 从列表中移除,是否要继续? 您正在丢弃所有的贮藏,一经操作,无法回退,是否继续? + 补丁已成功保存! \ No newline at end of file diff --git a/src/Views/ConfirmDialog.xaml b/src/Views/ConfirmDialog.xaml index b660f616..867fedb1 100644 --- a/src/Views/ConfirmDialog.xaml +++ b/src/Views/ConfirmDialog.xaml @@ -6,11 +6,10 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls="clr-namespace:SourceGit.Views.Controls" - xmlns:validations="clr-namespace:SourceGit.Views.Validations" mc:Ignorable="d" WindowStartupLocation="CenterOwner" Width="500" SizeToContent="Height" - ResizeMode="NoResize"> + ResizeMode="NoResize"> @@ -61,7 +60,6 @@ @@ -72,7 +70,7 @@ Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">