aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-05 16:59:31 -0400
committerKen Moore <moorekou@gmail.com>2015-10-05 16:59:31 -0400
commit74ee6b14b6587027b8c2f6204180090a8195dfbd (patch)
tree6317aad198e9d5f328d073f4f73bd88dad50dcc6 /lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
parentClean up the Fluxbox keyboard defaults a bit. (diff)
downloadlumina-74ee6b14b6587027b8c2f6204180090a8195dfbd.tar.gz
lumina-74ee6b14b6587027b8c2f6204180090a8195dfbd.tar.bz2
lumina-74ee6b14b6587027b8c2f6204180090a8195dfbd.zip
Clean up the quicklaunch buttons a bit more - also add a context menu for removing the button directly.
Diffstat (limited to 'lumina-desktop/panel-plugins/systemstart/StartMenu.cpp')
-rw-r--r--lumina-desktop/panel-plugins/systemstart/StartMenu.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp b/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
index 5bab9377..4c64f554 100644
--- a/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
+++ b/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
@@ -123,6 +123,16 @@ void StartMenu::ReLoadQuickLaunch(){
emit UpdateQuickLaunch( LSession::handle()->sessionSettings()->value("QuicklaunchApps",QStringList()).toStringList() );
}
+void StartMenu::UpdateQuickLaunch(QString path, bool keep){
+ QStringList QL = LSession::handle()->sessionSettings()->value("QuicklaunchApps",QStringList()).toStringList();
+ if(keep){QL << path; }
+ else{ QL.removeAll(path); }
+ QL.removeDuplicates();
+ LSession::handle()->sessionSettings()->setValue("QuicklaunchApps",QL);
+ LSession::handle()->sessionSettings()->sync();
+ emit UpdateQuickLaunch(QL);
+}
+
// ==========================
// PRIVATE FUNCTIONS
// ==========================
@@ -178,15 +188,6 @@ void StartMenu::LaunchItem(QString path, bool fix){
}
}
-void StartMenu::UpdateQuickLaunch(QString path, bool keep){
- QStringList QL = LSession::handle()->sessionSettings()->value("QuicklaunchApps",QStringList()).toStringList();
- if(keep){QL << path; }
- else{ QL.removeAll(path); }
- QL.removeDuplicates();
- LSession::handle()->sessionSettings()->setValue("QuicklaunchApps",QL);
- emit UpdateQuickLaunch(QL);
-}
-
//Listing Update routines
void StartMenu::UpdateApps(){
ClearScrollArea(ui->scroll_apps);
bgstack15