On Fri, 5 Nov 2004 14:04:02 +0100
Florian Schmidt <mista.tapas(a)gmx.net> wrote:
// Main form visibility requester slot.
void qjackctlMainForm::toggleMainForm (void)
{
m_pSetup->saveWidgetGeometry(this);
if (isVisible()) {
if (m_pSetup->bSystemTray) {
hide();
}
else {
// iconify normally
setWindowState(Qt::WindowMinimized);
}
} else {
show();
raise();
setActiveWindow();
}
}
this works at least for me.
Oh, i see there's an option in the Setup dialog "enable system tray icon".
It was off. After turning it on, qjackctl doesn't disappear completely when
hiding (the original unpatched version).
Ok, above modification still seems to do the right thing (tm) imho. When
enable system tray is off, it gets minimized normally.
flo