workaroud for macos window hiding after checking authorization

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-04-25 16:57:19 +08:00
parent 865253b478
commit 2e19ffe89d

View File

@ -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),