-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: add nsis support for allowToAddShortcuts(user decides wether to… #9123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jaywalker15262
wants to merge
8
commits into
electron-userland:master
Choose a base branch
from
jaywalker15262:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
fe042a0
feat: add nsis support for allowToAddShortcuts(user decides wether to…
jaywalker15262 dd656ae
Merge branch 'master' into master
mmaietta 06e632d
Merge branch 'master' into master
mmaietta 4614ffb
Merge branch 'master' into master
mmaietta 34542b6
Merge branch 'master' into master
mmaietta ea95b83
Create tidy-melons-crash.md
mmaietta a461ca2
Merge branch 'master' into master
mmaietta 5a0ce28
Merge branch 'master' into master
mmaietta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| "app-builder-lib": patch | ||
| --- | ||
|
|
||
| feat: add nsis support for `allowToAddShortcuts` (user decides wether to add a shortcut or not) | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| !include nsDialogs.nsh | ||
|
|
||
| Var ShortcutsPageDialog | ||
| Var SHORTCUT_DESKTOP_CHECKBOX | ||
| Var SHORTCUT_STARTMENU_CHECKBOX | ||
|
|
||
| !macro PAGE_SHORTCUTS | ||
| !insertmacro MUI_PAGE_INIT | ||
| !insertmacro MUI_SET SHORTCUTS_PAGE "" | ||
|
|
||
| PageEx custom | ||
| PageCallbacks ShortcutsPagePre ShortcutsPageLeave | ||
| Caption "Shortcuts" | ||
| PageExEnd | ||
| !macroend | ||
|
|
||
| Function ShortcutsPagePre | ||
| nsDialogs::Create 1018 | ||
| Pop $ShortcutsPageDialog | ||
| ${If} $ShortcutsPageDialog == "error" | ||
| Abort | ||
| ${EndIf} | ||
|
|
||
| ${NSD_CreateCheckBox} 10u 10u 120u 12u "Create Desktop Shortcut" | ||
| Pop $SHORTCUT_DESKTOP_CHECKBOX | ||
| !ifndef DO_NOT_CREATE_DESKTOP_SHORTCUT | ||
| ${NSD_Check} $SHORTCUT_DESKTOP_CHECKBOX | ||
| !endif | ||
|
|
||
| ${NSD_CreateCheckBox} 10u 30u 140u 12u "Create Start Menu Shortcut" | ||
| Pop $SHORTCUT_STARTMENU_CHECKBOX | ||
| !ifndef DO_NOT_CREATE_START_MENU_SHORTCUT | ||
| ${NSD_Check} $SHORTCUT_STARTMENU_CHECKBOX | ||
| !endif | ||
|
|
||
| nsDialogs::Show | ||
| FunctionEnd | ||
|
|
||
| Function ShortcutsPageLeave | ||
| ${NSD_GetState} $SHORTCUT_DESKTOP_CHECKBOX $0 | ||
| StrCpy $USER_DESKTOP_SHORTCUT_CHOICE $0 | ||
| ${NSD_GetState} $SHORTCUT_STARTMENU_CHECKBOX $0 | ||
| StrCpy $USER_STARTMENU_SHORTCUT_CHOICE $0 | ||
| FunctionEnd |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts on renaming this to
allowToCustomizeShortcutssince it supports customizing desktop and/or start menu. Thinking "Customize" because it allows the user to allow/enable or disable/remove shortcuts from being created.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not, good idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaywalker15262 I am unable to push changes to this PR to update the property. Can you please attend to this and I'll be happy to proceed with merging.