Fix repopen event with documents in the Dock

This commit is contained in:
1024jp 2024-07-02 19:51:46 +09:00
parent 558d3d153a
commit d2910a0eeb
2 changed files with 5 additions and 2 deletions

View File

@ -12,6 +12,7 @@
### Fixes
- Fix an issue that a document kept in the Dock was not brought to the front on the reopen event even though no documents were displayed.
- Fix the view layout in the Quick Action bar.
- Fix a potential memory leak.

View File

@ -259,9 +259,11 @@ private enum BundleIdentifier {
// execute the action directly by self (2024-05, macOS 14).
if !flag {
(DocumentController.shared as? DocumentController)?.performOnLaunchAction(isReopen: true)
return false
} else {
// -> bring a document in the Dock to the front if any exists.
return true
}
return false
}