Commit 7aa6be93 authored by Sophie Herold's avatar Sophie Herold

Preselect repo location as uri

Closes #15
parent 571853ce
......@@ -178,9 +178,10 @@ fn init_repo_list_activated(row: &gtk::ListBoxRow, ui: &builder::NewBackup) {
ui.init_location().set_visible_child(&ui.init_remote());
} else {
ui.init_location().set_visible_child(&ui.init_local());
trace!("Setting {} as init_path", &name);
ui.init_path()
.set_current_folder(std::path::PathBuf::from(&name));
if name != "-init-local" {
trace!("Setting {} as init_path", &name);
ui.init_path().set_current_folder_uri(&name);
}
}
ui.password_quality().set_value(0.0);
ui.stack().set_visible_child(&ui.init_page());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment