aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lumina-desktop/AppMenu.cpp1
-rw-r--r--lumina-desktop/AppMenu.h3
-rw-r--r--lumina-desktop/panel-plugins/userbutton/UserWidget.cpp1
3 files changed, 5 insertions, 0 deletions
diff --git a/lumina-desktop/AppMenu.cpp b/lumina-desktop/AppMenu.cpp
index 074bd9f1..ab8dc4a9 100644
--- a/lumina-desktop/AppMenu.cpp
+++ b/lumina-desktop/AppMenu.cpp
@@ -83,6 +83,7 @@ void AppMenu::updateAppList(){
}
this->addMenu(menu);
}
+ emit AppMenuUpdated();
}
//=================
diff --git a/lumina-desktop/AppMenu.h b/lumina-desktop/AppMenu.h
index f3d3c3e5..42145e0c 100644
--- a/lumina-desktop/AppMenu.h
+++ b/lumina-desktop/AppMenu.h
@@ -49,6 +49,9 @@ private slots:
void launchControlPanel();
void launchFileManager();
void launchApp(QAction *act);
+
+signals:
+ void AppMenuUpdated();
};
#endif
diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp
index 569d9f7e..5f50e707 100644
--- a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp
+++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp
@@ -82,6 +82,7 @@ UserWidget::UserWidget(QWidget* parent) : QTabWidget(parent), ui(new Ui::UserWid
ui->tool_qtconfig->setVisible(false);
}
lastUpdate = QDateTime(); //make sure it refreshes
+ connect(LSession::handle()->applicationMenu(), SIGNAL(AppMenuUpdated()), this, SLOT(UpdateMenu()) );
QTimer::singleShot(10,this, SLOT(UpdateMenu())); //make sure to load this once after initialization
}
bgstack15