Stubbed preset manager state, added confirm and variable dialogs, variables can now be created, everything is now mutatable

This commit is contained in:
2020-06-08 08:58:47 -05:00
parent 151df4ca57
commit f7a3e282f1
9 changed files with 393 additions and 58 deletions

View File

@@ -12,5 +12,21 @@ module TAC
def needs_cursor?
true
end
def close
if @backend.config_changed?
push_state(Dialog::ConfirmDialog, title: "Are you sure?", message: "Config has unsaved changes!", callback_method: proc { cleanup_and_close })
else
cleanup_and_close
end
end
def cleanup_and_close
if @backend.tacnet.connected?
@backend.tacnet.close
end
close!
end
end
end