mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-10 15:22:30 +01:00
Some hiding fixes.
This commit is contained in:
parent
6d587c0e03
commit
e3a7034371
@ -191,13 +191,14 @@ void FormMain::switchVisibility(bool force_hide) {
|
||||
if (force_hide || isVisible()) {
|
||||
if (SystemTrayIcon::isSystemTrayActivated()) {
|
||||
hide();
|
||||
|
||||
m_ui->m_actionSwitchMainWindow->blockSignals(true);
|
||||
m_ui->m_actionSwitchMainWindow->setChecked(false);
|
||||
m_ui->m_actionSwitchMainWindow->blockSignals(false);
|
||||
}
|
||||
else {
|
||||
setWindowState(windowState() & Qt::WindowMinimized);
|
||||
showMinimized();
|
||||
}
|
||||
m_ui->m_actionSwitchMainWindow->blockSignals(true);
|
||||
m_ui->m_actionSwitchMainWindow->setChecked(false);
|
||||
m_ui->m_actionSwitchMainWindow->blockSignals(false);
|
||||
}
|
||||
else {
|
||||
display();
|
||||
|
Loading…
Reference in New Issue
Block a user