cinnyapp / cinny-desktop

Yet another matrix client for desktop
GNU Affero General Public License v3.0
360 stars 37 forks source link

Opening Cinny launches it when its already running #210

Closed henk717 closed 2 weeks ago

henk717 commented 8 months ago

Describe the bug

Now that Cinny suspends to the tray it should detect if it is already open, and if so bring the existing instance to the foreground. Because it does not do this every time I click on the pinned Cinny icon in the taskbar when I have it closed I instead launch a second copy of the app and was collecting instances.

Reproduction

Open Cinny a second time when one is already closed to tray.

Expected behavior

Cinny's exe launches, detects another copy is running, brings that copy to the foreground and then closes.

Platform and versions

1. Windows 10 22H2
2. 3.0

Additional context

I use Cinny as a portable application so I have uninstalled it but keep Cinny.exe in a folder elsewhere and that is what my shortcuts link to.