turns out, hiding windows doesn't solve anything either, as there's no rust callback to notify about a window being hidden. This could've been solved by creating a custom rust command to handle the callback, but hiding windows has already been a workaround, and making a workaround on top of a workaround, is one level too deep for me.
If closing really turns out to be unsalvageable, i'll revert back to hiding. If it comes to that, i'll also need to do some perf tests on hiding vs closing, as we do not want to consume too much of end users' memory
revert of https://github.com/golota60/trayasen/pull/31
turns out, hiding windows doesn't solve anything either, as there's no rust callback to notify about a window being hidden. This could've been solved by creating a custom rust command to handle the callback, but hiding windows has already been a workaround, and making a workaround on top of a workaround, is one level too deep for me.
If closing really turns out to be unsalvageable, i'll revert back to hiding. If it comes to that, i'll also need to do some perf tests on hiding vs closing, as we do not want to consume too much of end users' memory