[GH-ISSUE #139] Can't open window after closing it in Mac OS #102

Open
opened 2026-02-28 14:30:37 +03:00 by kerem · 3 comments
Owner

Originally created by @confact on GitHub (Aug 23, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/139

When closing the window of psst, with the red button. I can't open it again and have to restart the app to open it again.

Solution:
Open the window if the window was closed when double click on the app in the dock.

Originally created by @confact on GitHub (Aug 23, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/139 When closing the window of psst, with the red button. I can't open it again and have to restart the app to open it again. Solution: Open the window if the window was closed when double click on the app in the dock.
Author
Owner

@JuliDi commented on GitHub (Aug 24, 2021):

I couldn't find any implementation of this in druid. It would need to handle this call.
If you put a log statement into the delegate's command() function (or add an event() function), there appears no log entry when you click the app icon after closing the window.
But maybe there's also something handling this event on a higher level that I am not aware of.

A workaround could be adding a menu entry that sends a cmd::SHOW_MAIN, however.

<!-- gh-comment-id:904476415 --> @JuliDi commented on GitHub (Aug 24, 2021): I couldn't find any implementation of this in druid. It would need to handle [this call](https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428638-applicationshouldhandlereopen). If you put a log statement into the delegate's `command()` function (or add an `event()` function), there appears no log entry when you click the app icon after closing the window. But maybe there's also something handling this event on a higher level that I am not aware of. A workaround could be adding a menu entry that sends a `cmd::SHOW_MAIN`, however.
Author
Owner

@confact commented on GitHub (Sep 14, 2021):

@JuliDi that's sad. So it is something in Druid that needs to be fixed before we could add support for it here?

I can add an issue for this in Druid for now.

<!-- gh-comment-id:919180361 --> @confact commented on GitHub (Sep 14, 2021): @JuliDi that's sad. So it is something in Druid that needs to be fixed before we could add support for it here? I can add an issue for this in Druid for now.
Author
Owner

@JuliDi commented on GitHub (Sep 15, 2021):

If I recall correctly, this was an issue/missing feature in Druid. Would be good if you could create an issue to that in Druid and link it here.
Maybe just ask how this could be done (I might have overlooked something) because it is not explicitly described anywhere.

<!-- gh-comment-id:919975922 --> @JuliDi commented on GitHub (Sep 15, 2021): If I recall correctly, this was an issue/missing feature in Druid. Would be good if you could create an issue to that in Druid and link it here. Maybe just ask how this could be done (I might have overlooked something) because it is not explicitly described anywhere.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#102
No description provided.