Make auto-saving happen once per second
This commit is contained in:
parent
8fad295e36
commit
9a4a7dee80
|
|
@ -153,7 +153,7 @@ pub const COLOR_OVERLAY_BLACK_75: &str = "#000000bf";
|
||||||
pub const DEFAULT_DOCUMENT_NAME: &str = "Untitled Document";
|
pub const DEFAULT_DOCUMENT_NAME: &str = "Untitled Document";
|
||||||
pub const FILE_SAVE_SUFFIX: &str = ".graphite";
|
pub const FILE_SAVE_SUFFIX: &str = ".graphite";
|
||||||
pub const MAX_UNDO_HISTORY_LEN: usize = 100; // TODO: Add this to user preferences
|
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
|
// INPUT
|
||||||
pub const DOUBLE_CLICK_MILLISECONDS: u64 = 500;
|
pub const DOUBLE_CLICK_MILLISECONDS: u64 = 500;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue