diff options
author | Ken Moore <ken@ixsystems.com> | 2016-12-02 13:47:23 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-12-02 13:47:23 -0500 |
commit | 120110d558b58fb0ca530c63a6070dad44d4cd75 (patch) | |
tree | b8fcaa81a5acaf1bc55f7539e82f2303f2aa2562 /src-qt5/core/lumina-desktop/panel-plugins | |
parent | Adjust the Qt-crash workaround a bit to try and avoid starting a dbus session... (diff) | |
download | lumina-120110d558b58fb0ca530c63a6070dad44d4cd75.tar.gz lumina-120110d558b58fb0ca530c63a6070dad44d4cd75.tar.bz2 lumina-120110d558b58fb0ca530c63a6070dad44d4cd75.zip |
Make the start menu open faster by only loading the favorites *when the file/list changes*.
Diffstat (limited to 'src-qt5/core/lumina-desktop/panel-plugins')
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp index a34d09db..d05ba22f 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp +++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp @@ -24,6 +24,7 @@ StartMenu::StartMenu(QWidget *parent) : QWidget(parent), ui(new Ui::StartMenu){ searchTimer->setSingleShot(true); connect(searchTimer, SIGNAL(timeout()), this, SLOT(startSearch()) ); connect(LSession::handle()->applicationMenu(), SIGNAL(AppMenuUpdated()), this, SLOT(UpdateApps()) ); + connect(LSession::handle(), SIGNAL(FavoritesChanged()), this, SLOT(UpdateFavs()) ); //Need to load the last used setting of the application list QString state = LSession::handle()->DesktopPluginSettings()->value("panelPlugs/systemstart/showcategories", "partial").toString(); if(state=="partial"){ui->check_apps_showcats->setCheckState(Qt::PartiallyChecked); } @@ -128,7 +129,7 @@ void StartMenu::UpdateMenu(bool forceall){ if(forceall){ UpdateAll(); } //Quick update routine before the menu is made visible //qDebug() << "update favs"; - UpdateFavs(); + //UpdateFavs(); //qDebug() << "check page"; if(ui->stackedWidget->currentWidget() != ui->page_main){ ui->stackedWidget->setCurrentWidget(ui->page_main); //just show the main page |