Merge pull request #546 from kthchew/feature/scrollable-accounts

This commit is contained in:
dada513 2022-05-15 21:43:34 +02:00 committed by GitHub
commit 9be8160bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -950,6 +950,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new MainWindow
ui->mainToolBar->addWidget(spacer);
accountMenu = new QMenu(this);
// Use undocumented property... https://stackoverflow.com/questions/7121718/create-a-scrollbar-in-a-submenu-qt
accountMenu->setStyleSheet("QMenu { menu-scrollable: 1; }");
repopulateAccountsMenu();