-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor file-launching method in cmd
Previously the cmd util uses different strategies to open files based on whether MacDown is currently running. This results in various problems, the most prominent being that NSWorkspace cannot be used to pass a path for files that do not exist. This change unifies the opening strategy to always be based on cross-application NSUserDefaults instead, and moves the open file check from during application launch to application activation. This makes the implementation simpler, and also solves the problem aforementioned. Fix #672.
- Loading branch information
Showing
3 changed files
with
12 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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 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 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