mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-08-16 14:50:30 +03:00
Fix repopen event with documents in the Dock
This commit is contained in:
parent
558d3d153a
commit
d2910a0eeb
@ -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.
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user