From 24149dabef57ec83876b45bd3ea4b4a94518903c Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Tue, 21 Jan 2025 01:03:00 +0100 Subject: [PATCH] Fix lock bug when restoring windows --- src/InvLock/LockWindow.xaml.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/InvLock/LockWindow.xaml.cs b/src/InvLock/LockWindow.xaml.cs index 02c9615..67c4750 100644 --- a/src/InvLock/LockWindow.xaml.cs +++ b/src/InvLock/LockWindow.xaml.cs @@ -146,18 +146,19 @@ public partial class LockWindow : Window { Dispatcher.Invoke(() => { + suppressInput = false; + if (settings.HideWindows) { RestoreWindows(); } + isOpen = true; + textBlock.Text = settings.UnlockText; textBlock.Stroke = (Brush)FindResource("PaletteGreenBrush"); Animation(); - - isOpen = true; - suppressInput = false; }); } }