leoafarias / sidekick

A simple app to make Flutter development more delightful
BSD 3-Clause "New" or "Revised" License
1.57k stars 101 forks source link

[Feature Request / Bug] Optimize Persist Single Instance For Windows #318

Closed charles0122 closed 2 months ago

charles0122 commented 4 months ago

When I open another instance on Windows, an error occurs. This may be caused by the application positioning being a single-instance application. However, I think it can be optimized so that when I open another instance, no error message is displayed, but the instance window I have already opened is immediately displayed.

image

aguilaair commented 3 months ago

Probably requires native code?

charles0122 commented 3 months ago

As far as I know, that need to use native code. I have seen some information here.

from https://pub.dev/packages/window_manager Click the dock icon to restore after closing the window Making the app single-instanced

aguilaair commented 3 months ago

This definetely seems doable, feel free to make a PR or I can add it to my to-do