Skip to content

How to minimize an eframe app to the tray? #737

Answered by Gremious
Absolucy asked this question in Q&A
Discussion options

You must be logged in to vote

2 ish years too late but it was a pain to figure out, so here's my newfound knowledge for those that come after:

egui/eframe doesn't support that even now, years later as far as I can see.

Using the egui::viewport commands also doesn't work - #3655. I think it's because egui doesn't update once the window is not interactable e.g. invisible/minimized.

It also doesn't allow for running eframe on an existing event loop - #2875. This means you can't have your own loop where you actually honest to god close the window and re-create it every time to "minimize to tray". I really do wish it exposed native or something.

But aftrer like 2 days of screwing around, this is the simplest solution I fou…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gembleman
Comment options

Answer selected by Absolucy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants