aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-03-30 12:07:23 -0400
committerKen Moore <ken@pcbsd.org>2015-03-30 12:07:23 -0400
commit5aad9b59956f31a5cc21966ff952b592724afbaf (patch)
treeca99bc608b31c4be5db18d9102178eea7d91a432 /lumina-desktop
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-5aad9b59956f31a5cc21966ff952b592724afbaf.tar.gz
lumina-5aad9b59956f31a5cc21966ff952b592724afbaf.tar.bz2
lumina-5aad9b59956f31a5cc21966ff952b592724afbaf.zip
Make the initial system application query happen during the initialization phase of the session. This ensures that buttons (like the userbutton/appmenu) are responsive as soon as the desktop session is visible (only adds a second or two to the init time on my system).
Diffstat (limited to 'lumina-desktop')
-rw-r--r--lumina-desktop/AppMenu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lumina-desktop/AppMenu.cpp b/lumina-desktop/AppMenu.cpp
index 8736b61e..6c24d632 100644
--- a/lumina-desktop/AppMenu.cpp
+++ b/lumina-desktop/AppMenu.cpp
@@ -14,7 +14,8 @@ AppMenu::AppMenu(QWidget* parent) : QMenu(parent){
APPS.clear();
watcher = new QFileSystemWatcher(this);
connect(watcher, SIGNAL(directoryChanged(QString)), this, SLOT(watcherUpdate()) );
- QTimer::singleShot(200, this, SLOT(start()) ); //Now start filling the menu
+ //QTimer::singleShot(200, this, SLOT(start()) ); //Now start filling the menu
+ start(); //do the initial run during session init so things are responsive immediately.
}
AppMenu::~AppMenu(){
bgstack15