mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-11-23 19:04:56 +01:00
Add setting to toggle link arrows (#128)
This commit is contained in:
1 parent
11673bd8c4
commit
93e96829f4
7 files changed
+40
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user