mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-19 00:13:01 +08:00
workaroud for macos window hiding after checking authorization
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
865253b478
commit
2e19ffe89d
@ -19,6 +19,7 @@ import 'package:provider/provider.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
import 'package:flutter_hbb/desktop/widgets/scroll_wrapper.dart';
|
||||
import 'package:window_manager/window_manager.dart';
|
||||
|
||||
import '../../common/widgets/dialog.dart';
|
||||
import '../../common/widgets/login.dart';
|
||||
@ -1875,6 +1876,9 @@ Widget _lock(
|
||||
if (checked) {
|
||||
onUnlock();
|
||||
}
|
||||
if (Platform.isMacOS) {
|
||||
await windowManager.show();
|
||||
}
|
||||
},
|
||||
).marginSymmetric(horizontal: 2, vertical: 4),
|
||||
).marginOnly(left: _kCardLeftMargin),
|
||||
|
Loading…
Reference in New Issue
Block a user