1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 03:09:57 +01:00

Oops, forgot this comment

This commit is contained in:
David Sansome 2010-04-19 14:23:57 +00:00
parent 56bb697d06
commit 66d83fd120

View File

@ -627,6 +627,8 @@ void MainWindow::closeEvent(QCloseEvent* event) {
void MainWindow::SetHiddenInTray(bool hidden) { void MainWindow::SetHiddenInTray(bool hidden) {
settings_.setValue("hidden", hidden); settings_.setValue("hidden", hidden);
// Some window managers don't remember maximized state between calls to
// hide() and show(), so we have to remember it ourself.
if (hidden) { if (hidden) {
was_maximized_ = isMaximized(); was_maximized_ = isMaximized();
hide(); hide();