Add 'Show dates' setting to toggle the note-list date

This commit is contained in:
Yuri Karamian
2026-06-08 01:00:25 +02:00
parent a400eeefed
commit 6115ad4ab6
6 changed files with 25 additions and 4 deletions
+2
View File
@@ -830,9 +830,11 @@ pub fn set_general_settings(
show_tray_icon: bool,
close_to_tray: bool,
enable_wiki_links: bool,
show_note_dates: bool,
) -> Result<(), String> {
let mut config = state.config.lock().map_err(|e| e.to_string())?;
config.compact_notes = compact_notes;
config.show_note_dates = show_note_dates;
config.time_format = time_format;
config.gpu_acceleration = gpu_acceleration;
config.autostart = autostart;
+3
View File
@@ -73,6 +73,8 @@ pub struct AppConfig {
pub ui_scale: Option<f64>,
#[serde(default)]
pub compact_notes: bool,
#[serde(default = "default_true")]
pub show_note_dates: bool,
#[serde(default)]
pub time_format: String,
#[serde(default)]
@@ -188,6 +190,7 @@ impl Default for AppConfig {
line_height: None,
ui_scale: None,
compact_notes: false,
show_note_dates: true,
time_format: "relative".to_string(),
gpu_acceleration: true,
autostart: false,