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 (force_hide || isVisible()) {
|
||||||
if (SystemTrayIcon::isSystemTrayActivated()) {
|
if (SystemTrayIcon::isSystemTrayActivated()) {
|
||||||
hide();
|
hide();
|
||||||
|
|
||||||
|
m_ui->m_actionSwitchMainWindow->blockSignals(true);
|
||||||
|
m_ui->m_actionSwitchMainWindow->setChecked(false);
|
||||||
|
m_ui->m_actionSwitchMainWindow->blockSignals(false);
|
||||||
}
|
}
|
||||||
else {
|
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 {
|
else {
|
||||||
display();
|
display();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user