Files
galaxy/app/src/undo_close/settings.rs
T
Ryan Ward 148c97eab1 Fix View Options popup not responding to clicks
Remove duplicate popup rendering from render_vertical_tabs_panel.
The popup was rendered both inside the panel's stack AND at the
workspace level in a Dismiss overlay, causing event dispatch conflicts
due to shared MouseStateHandle instances between the two identical
popup trees.
2026-06-23 15:28:59 -05:00

27 lines
863 B
Rust

use std::time::Duration;
use settings::{
macros::define_settings_group, 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.",
},
]);