How can I get my main DocumentWindow from the overimplemented System Tray Icon? Like I get the instance of JUCEApplication using JUCEApplication::getInstance()?
the main doc window is hidden on minimize:
I have a pop up menu at tray icon, it contains 2 items:
exit is implemented using JUCEApplication::getInstance()->systemRequestedQuit() (taken from juce demo app)
and “Show” should be smth like
DocumentWindow::getInstance()->setVisible(true) ??? Of course no, because we can have more than one doc windows… but how?..