spelling: minimized
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
751aa26d8c
commit
44ead53bc3
@ -44,7 +44,7 @@ class _ConnectionPageState extends State<ConnectionPage>
|
|||||||
var svcStatusCode = 0.obs;
|
var svcStatusCode = 0.obs;
|
||||||
var svcIsUsingPublicServer = true.obs;
|
var svcIsUsingPublicServer = true.obs;
|
||||||
|
|
||||||
bool isWindowMinisized = false;
|
bool isWindowMinimized = false;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@ -80,13 +80,13 @@ class _ConnectionPageState extends State<ConnectionPage>
|
|||||||
void onWindowEvent(String eventName) {
|
void onWindowEvent(String eventName) {
|
||||||
super.onWindowEvent(eventName);
|
super.onWindowEvent(eventName);
|
||||||
if (eventName == 'minimize') {
|
if (eventName == 'minimize') {
|
||||||
isWindowMinisized = true;
|
isWindowMinimized = true;
|
||||||
} else if (eventName == 'maximize' || eventName == 'restore') {
|
} else if (eventName == 'maximize' || eventName == 'restore') {
|
||||||
if (isWindowMinisized && Platform.isWindows) {
|
if (isWindowMinimized && Platform.isWindows) {
|
||||||
// windows can't update when minisized.
|
// windows can't update when minimized.
|
||||||
Get.forceAppUpdate();
|
Get.forceAppUpdate();
|
||||||
}
|
}
|
||||||
isWindowMinisized = false;
|
isWindowMinimized = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user