Files
galaxy/app/src/undo_close/settings.rs
T

26 lines
903 B
Rust

use std::time::Duration;
use settings::macros::define_settings_group;
use settings::{RespectUserSyncSetting, Setting, SupportedPlatforms, SyncToCloud};
define_settings_group!(UndoCloseSettings, settings: [
enabled: UndoCloseEnabled {
type: bool,
default: true,
supported_platforms: SupportedPlatforms::ALL,
sync_to_cloud: SyncToCloud::Never,
private: false,
toml_path: "general.undo_close.enabled",
description: "Whether the undo close feature is enabled.",
},
grace_period: UndoCloseGracePeriod {
type: Duration,
default: Duration::from_secs(60),
supported_platforms: SupportedPlatforms::ALL,
sync_to_cloud: SyncToCloud::Never,
private: false,
toml_path: "general.undo_close.grace_period",
description: "How long after closing a tab you can still undo the close.",
},
]);