pub fn want_view_for(app: &AppHandle, dialog: &str, mode: &str)
Keeps the mode a dialog is shown in, and as the view last used.