diff --git a/defaults/settings.toml b/defaults/settings.toml index 6ee60429..96ed5a29 100644 --- a/defaults/settings.toml +++ b/defaults/settings.toml @@ -5,7 +5,7 @@ modal = false color-theme = "Lapce Dark" icon-theme = "Lapce Codicons" custom-titlebar = true -file-exploerer-double-click = false +file-explorer-double-click = false auto-reload-plugin = false [editor] diff --git a/lapce-app/src/config/core.rs b/lapce-app/src/config/core.rs index 32e24b62..c230b9cb 100644 --- a/lapce-app/src/config/core.rs +++ b/lapce-app/src/config/core.rs @@ -17,7 +17,7 @@ pub struct CoreConfig { #[field_names( desc = "Only allow double-click to open files in the file explorer" )] - pub file_exploerer_double_click: bool, + pub file_explorer_double_click: bool, #[field_names( desc = "Enable auto-reload for the plugin when its configuration changes." )] diff --git a/lapce-app/src/file_explorer/data.rs b/lapce-app/src/file_explorer/data.rs index a931c09b..b6ded766 100644 --- a/lapce-app/src/file_explorer/data.rs +++ b/lapce-app/src/file_explorer/data.rs @@ -399,7 +399,7 @@ pub fn cancel_naming(&self) { pub fn click(&self, path: &Path, config: ReadSignal>) { if self.is_dir(path) { self.toggle_expand(path); - } else if !config.get_untracked().core.file_exploerer_double_click { + } else if !config.get_untracked().core.file_explorer_double_click { self.common .internal_command .send(InternalCommand::OpenFile { @@ -468,7 +468,7 @@ pub fn double_click( ) -> EventPropagation { if self.is_dir(path) { EventPropagation::Continue - } else if config.get_untracked().core.file_exploerer_double_click { + } else if config.get_untracked().core.file_explorer_double_click { self.common.internal_command.send( InternalCommand::OpenAndConfirmedFile { path: path.to_path_buf(), diff --git a/lapce-core/build.rs b/lapce-core/build.rs index e027736f..d4a7d155 100644 --- a/lapce-core/build.rs +++ b/lapce-core/build.rs @@ -10,7 +10,7 @@ struct ReleaseInfo { fn main() -> Result<()> { println!("cargo:rerun-if-changed=build.rs"); - println!("cargo:rerun-if-changed=../.git/head"); + println!("cargo:rerun-if-changed=../.git/HEAD"); println!("cargo:rerun-if-env-changed=CARGO_PKG_VERSION"); println!("cargo:rerun-if-env-changed=CARGO_FEATURE_DISTRIBUTION"); println!("cargo:rerun-if-env-changed=RELEASE_TAG_NAME");