From 9a4a7dee801e2cbfde140f85de92556d58e5c754 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Sun, 3 Aug 2025 15:20:30 -0700 Subject: [PATCH] Make auto-saving happen once per second --- editor/src/consts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/consts.rs b/editor/src/consts.rs index fabb2489..44a5b1d2 100644 --- a/editor/src/consts.rs +++ b/editor/src/consts.rs @@ -153,7 +153,7 @@ pub const COLOR_OVERLAY_BLACK_75: &str = "#000000bf"; pub const DEFAULT_DOCUMENT_NAME: &str = "Untitled Document"; pub const FILE_SAVE_SUFFIX: &str = ".graphite"; pub const MAX_UNDO_HISTORY_LEN: usize = 100; // TODO: Add this to user preferences -pub const AUTO_SAVE_TIMEOUT_SECONDS: u64 = 15; +pub const AUTO_SAVE_TIMEOUT_SECONDS: u64 = 1; // INPUT pub const DOUBLE_CLICK_MILLISECONDS: u64 = 500;