mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
Fix main menu item location on macOS
This commit is contained in:
parent
802cd89ec9
commit
7b4316ea8f
@ -326,6 +326,13 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
m_ui->actionCheckForUpdates->setVisible(false);
|
m_ui->actionCheckForUpdates->setVisible(false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Certain menu items should reside at specific places on macOS.
|
||||||
|
// Qt partially does it on its own, but updates and different languages require tuning.
|
||||||
|
m_ui->actionExit->setMenuRole(QAction::QuitRole);
|
||||||
|
m_ui->actionAbout->setMenuRole(QAction::AboutRole);
|
||||||
|
m_ui->actionCheckForUpdates->setMenuRole(QAction::ApplicationSpecificRole);
|
||||||
|
m_ui->actionOptions->setMenuRole(QAction::PreferencesRole);
|
||||||
|
|
||||||
connect(m_ui->actionManageCookies, &QAction::triggered, this, &MainWindow::manageCookies);
|
connect(m_ui->actionManageCookies, &QAction::triggered, this, &MainWindow::manageCookies);
|
||||||
|
|
||||||
m_pwr = new PowerManagement(this);
|
m_pwr = new PowerManagement(this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user