Make show details configurable and persistent, fixes #540 and #321

This commit is contained in:
Jeremy Soller 2024-10-02 15:26:02 -06:00
parent 60743ed251
commit 21eac9324f
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
5 changed files with 58 additions and 105 deletions

View file

@ -9,10 +9,7 @@ use cosmic::{
};
use serde::{Deserialize, Serialize};
use crate::{
app::App,
tab::{HeadingOptions, View},
};
use crate::{app::App, tab::View};
pub const CONFIG_VERSION: u64 = 1;
@ -96,6 +93,7 @@ impl Favorite {
pub struct Config {
pub app_theme: AppTheme,
pub favorites: Vec<Favorite>,
pub show_details: bool,
pub tab: TabConfig,
}
@ -141,6 +139,7 @@ impl Default for Config {
Favorite::Pictures,
Favorite::Videos,
],
show_details: false,
tab: TabConfig::default(),
}
}