mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 16:14:01 +08:00
fix(install-location): Update language and remove buggy regex
This commit is contained in:
parent
1d941800c3
commit
42274b656c
1 changed files with 5 additions and 12 deletions
|
@ -51,25 +51,18 @@ export function activate() {
|
|||
let buttons;
|
||||
if (numAsks >= 1) {
|
||||
buttons = [
|
||||
"Move to Applications Folder",
|
||||
"Move to Applications folder",
|
||||
"Don't ask again",
|
||||
"Do Not Move",
|
||||
"Do not move",
|
||||
]
|
||||
} else {
|
||||
buttons = [
|
||||
"Move to Applications Folder",
|
||||
"Do Not Move",
|
||||
"Move to Applications folder",
|
||||
"Do not move",
|
||||
]
|
||||
}
|
||||
|
||||
const re = /(^.*?\.app)/i;
|
||||
let enclosingFolder = (re.exec(process.argv[0]) || [])[0].split("/");
|
||||
enclosingFolder = enclosingFolder[enclosingFolder.length - 2]
|
||||
|
||||
let msg = `I can move myself to your Applications folder if you'd like.`
|
||||
if (enclosingFolder) {
|
||||
msg += ` This will keep your ${enclosingFolder} folder uncluttered.`
|
||||
}
|
||||
let msg = `We recommend that you move N1 to your Applications folder to get updates correctly and keep this folder uncluttered.`
|
||||
|
||||
const CANCEL_ID = 3;
|
||||
|
||||
|
|
Loading…
Reference in a new issue