1.fix typo (#3523)

This commit is contained in:
ifengqi 2024-09-19 20:20:59 +08:00 committed by GitHub
parent 4e7d353f44
commit d88fc896d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -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]

View File

@ -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."
)]

View File

@ -399,7 +399,7 @@ pub fn cancel_naming(&self) {
pub fn click(&self, path: &Path, config: ReadSignal<Arc<LapceConfig>>) {
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(),

View File

@ -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");