Review comment

Moved point of application exit for the menu item option.
This commit is contained in:
Philip Abbey
2025-07-10 19:46:04 +01:00
parent 842a31a1cc
commit d141c03104
3 changed files with 20 additions and 10 deletions

View File

@ -106,10 +106,7 @@ class HomeAssistantTapMenuItem extends HomeAssistantMenuItem {
//
function onConfirm(b as Lang.Boolean) as Void {
if (mService != null) {
mHomeAssistantService.call(mService, mData);
}
if (mExit) {
System.exit();
mHomeAssistantService.call(mService, mData, mExit);
}
}