fix: prevent call minimize when on mobile
This commit is contained in:
parent
f127f2dca6
commit
617872761c
@ -456,7 +456,8 @@ class ServerModel with ChangeNotifier {
|
|||||||
Future.delayed(Duration.zero, () async {
|
Future.delayed(Duration.zero, () async {
|
||||||
if (!hideCm) window_on_top(null);
|
if (!hideCm) window_on_top(null);
|
||||||
});
|
});
|
||||||
if (client.authorized) {
|
// Only do the hidden task when on Desktop.
|
||||||
|
if (client.authorized && isDesktop) {
|
||||||
cmHiddenTimer = Timer(const Duration(seconds: 3), () {
|
cmHiddenTimer = Timer(const Duration(seconds: 3), () {
|
||||||
if (!hideCm) windowManager.minimize();
|
if (!hideCm) windowManager.minimize();
|
||||||
cmHiddenTimer = null;
|
cmHiddenTimer = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user