feat(tui): added option for storing downloaded files in username directories
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user