switch to new window_manager from main
This commit is contained in:
parent
479279b68e
commit
44a1ec667e
1 changed files with 102 additions and 97 deletions
|
|
@ -88,7 +88,7 @@ class UnifiedPushController extends AsyncNotifier<String?> {
|
|||
|
||||
if (notification == null ||
|
||||
(!isInBackground &&
|
||||
await windowManager.isFocused().onError((_, _) => true) &&
|
||||
(WindowManager.instance.getCurrent()?.isFocused ?? true) &&
|
||||
ref.read(SelectedRoomController.provider) ==
|
||||
notification.roomId)) {
|
||||
if (isInBackground) exit(0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue