mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-02-05 19:00:54 +08:00
Attempt to fix toolbar toggling on Mac
This commit is contained in:
parent
efe1655834
commit
10801f111b
@ -644,9 +644,11 @@ bool GUI::event(QEvent * e) {
|
||||
}
|
||||
#ifdef Q_WS_MAC
|
||||
case QEvent::ToolBarChange: {
|
||||
e->accept();
|
||||
const bool is_visible = toolBar->isVisible();
|
||||
actionTop_tool_bar->setChecked(is_visible);
|
||||
Preferences::setToolbarDisplayed(is_visible);
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user