Seperated hostname and port config data from Config into Settings

This commit is contained in:
2020-06-16 20:23:09 -05:00
parent ad5dcf8389
commit 78be9a51f3
8 changed files with 82 additions and 16 deletions

View File

@@ -15,7 +15,9 @@ module TAC
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 })
push_state(Dialog::ConfirmDialog, title: "Unsaved Config", message: "Config has unsaved changes\nthat will be lost if\nyou continue!", callback_method: proc { cleanup_and_close })
elsif @backend.settings_changed?
push_state(Dialog::ConfirmDialog, title: "Unsaved Settings", message: "Settings has unsaved changes\nthat will be lost if\nyou continue!", callback_method: proc { cleanup_and_close })
else
cleanup_and_close
end