File tree 1 file changed +2
-13
lines changed
1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -250,31 +250,20 @@ private void OnLocationChanged(object sender, EventArgs e)
250
250
251
251
private async void OnDeactivated ( object sender , EventArgs e )
252
252
{
253
- // When window is deactivated, FL cannot set keyboard correctly
254
- // This is a workaround to restore the keyboard layout
255
- if ( _settings . HideWhenDeactivated && _viewModel . StartWithEnglishMode )
256
- {
257
- Activate ( ) ;
258
- QueryTextBox . Focus ( ) ;
259
- Win32Helper . RestorePreviousKeyboardLayout ( ) ;
260
- }
261
-
262
253
_settings . WindowLeft = Left ;
263
254
_settings . WindowTop = Top ;
264
255
ClockPanel . Opacity = 0 ;
265
256
SearchIcon . Opacity = 0 ;
266
-
267
- // This condition stops extra hide call when animator is on,
257
+ //This condition stops extra hide call when animator is on,
268
258
// which causes the toggling to occasional hide instead of show.
269
259
if ( _viewModel . MainWindowVisibilityStatus )
270
260
{
271
261
// Need time to initialize the main query window animation.
272
262
// This also stops the mainwindow from flickering occasionally after Settings window is opened
273
263
// and always after Settings window is closed.
274
264
if ( _settings . UseAnimation )
275
- {
265
+
276
266
await Task . Delay ( 100 ) ;
277
- }
278
267
279
268
if ( _settings . HideWhenDeactivated && ! _viewModel . ExternalPreviewVisible )
280
269
{
You can’t perform that action at this time.
0 commit comments