|
@@ -95,7 +95,8 @@ class TrayController extends GetxController with TrayListener {
|
|
|
// MenuItem(label: 'tray_about'.tr, onClick: handleClickAbout),
|
|
|
|
|
|
|
|
|
- //isSHow == true ? MenuItem(label: "显示控制台", onClick: handleClickConsoleShow,checked: isShowConsole.value) : MenuItem(disabled: true,label: "显示控制台", onClick: handleClickConsoleShow),
|
|
|
+ isSHow == true ? MenuItem(label: "显示控制台", onClick: handleClickConsoleShow,checked: isShowConsole.value)
|
|
|
+ : MenuItem(disabled: true,label: "显示控制台", onClick: handleClickConsoleShow),
|
|
|
|
|
|
|
|
|
MenuItem(label: 'tray_exit'.tr, onClick: handleClickExit),
|
|
@@ -121,10 +122,10 @@ class TrayController extends GetxController with TrayListener {
|
|
|
isSHow = false;
|
|
|
if (menuItem.checked == true) {
|
|
|
isShowConsole.value = true;
|
|
|
- //showConsole();
|
|
|
+ controllers.global.showConsole();
|
|
|
} else {
|
|
|
isShowConsole.value = false;
|
|
|
- // hideConsole();
|
|
|
+ controllers.global.hideConsole();
|
|
|
}
|
|
|
}
|
|
|
Future<void> handleClickShow(MenuItem menuItem) async {
|