mirror of https://github.com/lapce/lapce.git
1.fix typo (#3523)
This commit is contained in:
parent
4e7d353f44
commit
d88fc896d7
|
@ -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]
|
||||
|
|
|
@ -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."
|
||||
)]
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue