diff options
author | Ken Moore <ken@pcbsd.org> | 2014-10-01 10:29:29 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-10-01 10:29:29 -0400 |
commit | a5576f90eb2fd6938532a4f8b89dc942aa667e8c (patch) | |
tree | 3e389aa952577f13e7e9a11f4e5ce9c0154788ef | |
parent | Add a Fluxbox Window theme preview to lumina-config (diff) | |
download | lumina-a5576f90eb2fd6938532a4f8b89dc942aa667e8c.tar.gz lumina-a5576f90eb2fd6938532a4f8b89dc942aa667e8c.tar.bz2 lumina-a5576f90eb2fd6938532a4f8b89dc942aa667e8c.zip |
When adding an applauncher plugin to the desktop: prompt for the application right then before saving the plugin to the config file.
-rw-r--r-- | lumina-config/mainUI.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp index c366b07c..37667f40 100644 --- a/lumina-config/mainUI.cpp +++ b/lumina-config/mainUI.cpp @@ -721,11 +721,18 @@ void MainUI::deskbgadded(){ } void MainUI::deskplugadded(){ + QString newplug = ui->combo_desk_plugs->itemData( ui->combo_desk_plugs->currentIndex() ).toString(); + if(newplug=="applauncher"){ + //Prompt for the application to add + XDGDesktop app = getSysApp(); + if(app.filePath.isEmpty()){ return; } //cancelled + newplug.append("::"+app.filePath); + } settings->sync(); //make sure we have the newly-modified list from the desktop (unique IDs for new plugins) QString DPrefix = "desktop-"+QString::number(currentDesktop())+"/"; QStringList plugins = settings->value(DPrefix+"pluginlist").toStringList(); //qDebug() << "Current Plugins:" << plugins; - plugins << ui->combo_desk_plugs->itemData( ui->combo_desk_plugs->currentIndex() ).toString(); + plugins << newplug; //qDebug() << "New Plugins:" << plugins; settings->setValue(DPrefix+"pluginlist", plugins); settings->sync(); |