Skip to content

Commit

Permalink
Set Copy to clipboard button re-enablement delay to 1 second
Browse files Browse the repository at this point in the history
+ Clean-up some unused namespaces
  • Loading branch information
neon-nyan committed Jan 21, 2024
1 parent 036e7b9 commit 23f4174
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CollapseLauncher/XAMLs/MainApp/Pages/Dialogs/SimpleDialogs.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using CollapseLauncher.CustomControls;
using Hi3Helper;
using Hi3Helper.Data;
using Hi3Helper.Preset;
using Microsoft.UI.Text;
using Microsoft.UI.Xaml;
Expand All @@ -10,10 +9,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel.DataTransfer;
using static Hi3Helper.Data.ConverterTool;
using static Hi3Helper.Locale;
using static Hi3Helper.Preset.ConfigV2Store;
Expand Down Expand Up @@ -583,7 +579,7 @@ public static async Task<ContentDialogResult> Dialog_MeteredConnectionWarning(UI
null,
ContentDialogButton.Primary,
ContentDialogTheme.Warning
);
);
}

public static async Task<ContentDialogResult> Dialog_ResetKeyboardShortcuts(UIElement Content)
Expand Down Expand Up @@ -617,7 +613,7 @@ async void CopyTextToClipboard(object sender, RoutedEventArgs e)
textBlock.Text = Lang._UnhandledExceptionPage.CopyClipboardBtn2;
btn.IsEnabled = false;

await Task.Delay(5000);
await Task.Delay(1000);

fontIcon.Glyph = lastGlyph;
textBlock.Text = lastText;
Expand Down

0 comments on commit 23f4174

Please sign in to comment.