Fix missing self.

pull/2569/head
Tony 4 months ago
parent 1e711fbabb
commit fe72cd06e0
No known key found for this signature in database
GPG Key ID: 34BDD3EA27824956

@ -3,4 +3,4 @@ autostart: minor
autostart-js: minor autostart-js: minor
--- ---
Introduce a `Builder` for more flexible settings and also for the preparation of newer version of auto launch which introduced a new option to change the registry entry to enable auto start in Introduce a `Builder` for more flexible settings and also for the preparation of newer version of auto launch which introduced a new option to change the registry entry it uses to enable auto start

@ -181,7 +181,7 @@ impl Builder {
let exe_path = current_exe.canonicalize()?.display().to_string(); let exe_path = current_exe.canonicalize()?.display().to_string();
let parts: Vec<&str> = exe_path.split(".app/").collect(); let parts: Vec<&str> = exe_path.split(".app/").collect();
let app_path = if parts.len() == 2 let app_path = if parts.len() == 2
&& matches!(macos_launcher, MacosLauncher::AppleScript) && matches!(self.macos_launcher, MacosLauncher::AppleScript)
{ {
format!("{}.app", parts.first().unwrap()) format!("{}.app", parts.first().unwrap())
} else { } else {

Loading…
Cancel
Save