FooSoft / anki-connect

Anki plugin to expose a remote API for creating flash cards.
https://foosoft.net/projects/anki-connect/
Other
1.94k stars 219 forks source link

guiBrowse doesn't open in foreground #357

Open orgtre opened 1 year ago

orgtre commented 1 year ago

When running curl localhost:8765 -X POST -d '{"action": "guiBrowse", "version": 6}' in my shell when there is no open instance of the Card Browser dialog, the Card Browser dialog opens in the background, behind the shell. When running the same with an open instance of the Card Browser dialog, it pops into the foreground, on the other hand. It would be better if it were to open in the foreground in both cases. Other actions, like guiAddCards or guiEditNote, make the GUI appear in the foreground in both cases too.