Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
use std::time::Duration;
|
||||
|
||||
use settings::{
|
||||
macros::define_settings_group, RespectUserSyncSetting, SupportedPlatforms, SyncToCloud,
|
||||
};
|
||||
|
||||
define_settings_group!(UndoCloseSettings, settings: [
|
||||
enabled: UndoCloseEnabled {
|
||||
type: bool,
|
||||
default: true,
|
||||
supported_platforms: SupportedPlatforms::ALL,
|
||||
sync_to_cloud: SyncToCloud::Globally(RespectUserSyncSetting::Yes),
|
||||
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::Globally(RespectUserSyncSetting::Yes),
|
||||
private: false,
|
||||
toml_path: "general.undo_close.grace_period",
|
||||
description: "How long after closing a tab you can still undo the close.",
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user