Skip to content

Commit

Permalink
#4008 Fix ui is not showup on windows after start Wox
Browse files Browse the repository at this point in the history
  • Loading branch information
qianlifeng committed Apr 28, 2024
1 parent 9c37a19 commit 1cb7ef1
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -91,6 +91,11 @@ class WoxLauncherController extends GetxController implements WoxLauncherInterfa
await windowManager.setPosition(Offset(params.position.x.toDouble(), params.position.y.toDouble()));
}
await windowManager.show();
if(Platform.isWindows) {
// on windows, it is somehow necessary to invoke show twice to make the window show
// otherwise, the window will not show up if it is the first time to invoke showApp
await windowManager.show();
}
await windowManager.focus();
queryBoxFocusNode.requestFocus();

Expand Down

0 comments on commit 1cb7ef1

Please sign in to comment.