mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 11:16:20 +03:00
Mac toolbar toggling improvement (Mirco Chinelli)
This commit is contained in:
parent
52f25c44eb
commit
e83f9245a9
1 changed files with 5 additions and 5 deletions
10
src/GUI.cpp
10
src/GUI.cpp
|
@ -644,12 +644,12 @@ bool GUI::event(QEvent * e) {
|
|||
}
|
||||
#ifdef Q_WS_MAC
|
||||
case QEvent::ToolBarChange: {
|
||||
qDebug("MAC: Received a toolbar change event!")
|
||||
qDebug("MAC: Received a toolbar change event!");
|
||||
bool ret = QMainWindow::event(e);
|
||||
const bool is_visible = toolBar->isVisible();
|
||||
qDebug("MAC: new toolbar visibility is %d", (int)is_visible);
|
||||
actionTop_tool_bar->setChecked(is_visible);
|
||||
Preferences::setToolbarDisplayed(is_visible);
|
||||
|
||||
qDebug("MAC: new toolbar visibility is %d", !actionTop_tool_bar->isChecked());
|
||||
actionTop_tool_bar->toggle();
|
||||
Preferences::setToolbarDisplayed(actionTop_tool_bar->isChecked());
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue