mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix logic in SendToMarsEditCommand where it finds the app to talk to. A running app takes precedence.
This commit is contained in:
@@ -39,11 +39,15 @@ private extension SendToMarsEditCommand {
|
||||
|
||||
func appToUse() -> UserApp? {
|
||||
|
||||
marsEditApps.forEach{ $0.updateStatus() }
|
||||
|
||||
for app in marsEditApps {
|
||||
app.updateStatus()
|
||||
if app.isRunning {
|
||||
return app
|
||||
}
|
||||
}
|
||||
|
||||
for app in marsEditApps {
|
||||
if app.existsOnDisk {
|
||||
return app
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user