feat(tui): added option for storing downloaded files in username directories

This commit is contained in:
Maik Steiger
2026-10-08 21:59:23 +02:00
parent 20bd676e0f
commit e567fa75ed
30 changed files with 130 additions and 7 deletions
+10
View File
@@ -369,6 +369,16 @@ impl MainTui {
lines.push(Line::from(""));
lines.push(section("Folders"));
lines.push(entry(
selected == SettingsRow::UseUsernameDirs,
"Use username directory ",
if settings.use_username_dirs {
"[x]"
} else {
"[ ]"
}
.to_string(),
));
lines.push(if settings.mode == SettingsMode::EditingDownloadDir {
typing("Download folder: ", settings.input.clone())
} else {
@@ -166,6 +166,7 @@ fn settings_shortcuts(
SettingsRow::ChangePassword => ("Enter", "change password"),
SettingsRow::Logout => ("Enter", "log out"),
SettingsRow::DownloadDir => ("Enter", "edit folder"),
SettingsRow::UseUsernameDirs => ("Enter", "toggle option"),
SettingsRow::Share(_) => ("d", "remove share"),
},
("a", "add share"),