feat: advanced option, main window, always on top (#12731)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
6381f43f01
commit
db4296533a
2 changed files with 9 additions and 3 deletions
|
|
@ -147,9 +147,15 @@ void runMainApp(bool startService) async {
|
|||
gFFI.userModel.refreshCurrentUser();
|
||||
runApp(App());
|
||||
|
||||
bool? alwaysOnTop;
|
||||
if (isDesktop) {
|
||||
alwaysOnTop =
|
||||
bind.mainGetBuildinOption(key: "main-window-always-on-top") == 'Y';
|
||||
}
|
||||
|
||||
// Set window option.
|
||||
WindowOptions windowOptions =
|
||||
getHiddenTitleBarWindowOptions(isMainWindow: true);
|
||||
WindowOptions windowOptions = getHiddenTitleBarWindowOptions(
|
||||
isMainWindow: true, alwaysOnTop: alwaysOnTop);
|
||||
windowManager.waitUntilReadyToShow(windowOptions, () async {
|
||||
// Restore the location of the main window before window hide or show.
|
||||
await restoreWindowPosition(WindowType.Main);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 221c2bfb3e60139cd0db6bfb06ec950afb17a66c
|
||||
Subproject commit 5b6c0cf49a6773ccca9c9e9bf18ebc8716734873
|
||||
Loading…
Add table
Add a link
Reference in a new issue