From a5576f90eb2fd6938532a4f8b89dc942aa667e8c Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 1 Oct 2014 10:29:29 -0400 Subject: When adding an applauncher plugin to the desktop: prompt for the application right then before saving the plugin to the config file. --- lumina-config/mainUI.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lumina-config/mainUI.cpp') 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(); -- cgit