fix: --cm cannot exit on macOS

This commit is contained in:
Kingtous
2023-02-10 21:18:55 +08:00
parent 506b1f1b10
commit 19c7cd99d5
4 changed files with 21 additions and 7 deletions

View File

@ -49,6 +49,11 @@ int androidVersion = 0;
int windowsBuildNumber = 0;
DesktopType? desktopType;
/// Check if the app is running with single view mode.
bool isSingleViewApp() {
return desktopType == DesktopType.cm;
}
/// * debug or test only, DO NOT enable in release build
bool isTest = false;