mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-27 21:43:14 +08:00
fix warn
This commit is contained in:
+2
-2
@@ -28,7 +28,7 @@ namespace System.Application.UI.Views.Windows
|
||||
TbPhoneNumber.Focus();
|
||||
}
|
||||
};
|
||||
void Submit(object _, KeyEventArgs e)
|
||||
void Submit(object? _, KeyEventArgs e)
|
||||
{
|
||||
if (e.Key == Key.Return)
|
||||
{
|
||||
@@ -65,7 +65,7 @@ namespace System.Application.UI.Views.Windows
|
||||
{
|
||||
if (DataContext is ChangeBindPhoneNumberWindowViewModel vm && vm.CurrentStepIsNew && !vm.IsComplete)
|
||||
{
|
||||
// 进入第二步时,如果关闭窗口,则需二次确认
|
||||
// 进入第二步时,如果关闭窗口,则需二次确认
|
||||
e.Cancel = true;
|
||||
var r = await MessageBoxCompat.ShowAsync(AppResources.UnsavedEditingWillBeDiscarded, AppResources.Warning, MessageBoxButtonCompat.OKCancel);
|
||||
if (r == MessageBoxResultCompat.OK)
|
||||
|
||||
Reference in New Issue
Block a user