Skip to content

Commit 24149da

Browse files
Fix lock bug when restoring windows
1 parent 1898148 commit 24149da

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/InvLock/LockWindow.xaml.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,18 +146,19 @@ private void DeactivateLockScreen()
146146
{
147147
Dispatcher.Invoke(() =>
148148
{
149+
suppressInput = false;
150+
149151
if (settings.HideWindows)
150152
{
151153
RestoreWindows();
152154
}
153155

156+
isOpen = true;
157+
154158
textBlock.Text = settings.UnlockText;
155159
textBlock.Stroke = (Brush)FindResource("PaletteGreenBrush");
156160

157161
Animation();
158-
159-
isOpen = true;
160-
suppressInput = false;
161162
});
162163
}
163164
}

0 commit comments

Comments
 (0)