Add setting to toggle link arrows (#128)

This commit is contained in:
Yuri Karamian
2026-06-19 11:06:49 +02:00
parent 11673bd8c4
commit 93e96829f4
7 changed files with 40 additions and 2 deletions
+2
View File
@@ -1087,6 +1087,7 @@ pub fn set_general_settings(
title_mode: String,
hide_title_in_body: bool,
show_line_numbers: bool,
show_link_arrows: bool,
default_view_mode: bool,
show_tray_icon: bool,
close_to_tray: bool,
@@ -1108,6 +1109,7 @@ pub fn set_general_settings(
config.title_mode = title_mode;
config.hide_title_in_body = hide_title_in_body;
config.show_line_numbers = show_line_numbers;
config.show_link_arrows = show_link_arrows;
config.default_view_mode = default_view_mode;
config.show_tray_icon = show_tray_icon;
config.close_to_tray = close_to_tray;
+3
View File
@@ -95,6 +95,8 @@ pub struct AppConfig {
pub hide_title_in_body: bool,
#[serde(default)]
pub show_line_numbers: bool,
#[serde(default = "default_true")]
pub show_link_arrows: bool,
#[serde(default)]
pub backup_enabled: bool,
#[serde(default = "default_backup_frequency")]
@@ -215,6 +217,7 @@ impl Default for AppConfig {
title_mode: "input".to_string(),
hide_title_in_body: false,
show_line_numbers: false,
show_link_arrows: true,
backup_enabled: false,
backup_frequency: "24h".to_string(),
backup_max_count: 10,