mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
feat: advanced option, main window, always on top (#12731)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -147,9 +147,15 @@ void runMainApp(bool startService) async {
|
|||||||
gFFI.userModel.refreshCurrentUser();
|
gFFI.userModel.refreshCurrentUser();
|
||||||
runApp(App());
|
runApp(App());
|
||||||
|
|
||||||
|
bool? alwaysOnTop;
|
||||||
|
if (isDesktop) {
|
||||||
|
alwaysOnTop =
|
||||||
|
bind.mainGetBuildinOption(key: "main-window-always-on-top") == 'Y';
|
||||||
|
}
|
||||||
|
|
||||||
// Set window option.
|
// Set window option.
|
||||||
WindowOptions windowOptions =
|
WindowOptions windowOptions = getHiddenTitleBarWindowOptions(
|
||||||
getHiddenTitleBarWindowOptions(isMainWindow: true);
|
isMainWindow: true, alwaysOnTop: alwaysOnTop);
|
||||||
windowManager.waitUntilReadyToShow(windowOptions, () async {
|
windowManager.waitUntilReadyToShow(windowOptions, () async {
|
||||||
// Restore the location of the main window before window hide or show.
|
// Restore the location of the main window before window hide or show.
|
||||||
await restoreWindowPosition(WindowType.Main);
|
await restoreWindowPosition(WindowType.Main);
|
||||||
|
|||||||
Submodule libs/hbb_common updated: 221c2bfb3e...5b6c0cf49a
Reference in New Issue
Block a user