* add .desktop suffix to files if they have not

* remove frameshape
This commit is contained in:
arcan1s
2014-11-19 15:04:10 +03:00
parent 5f37a9d8c7
commit 2c3c575493
2 changed files with 3 additions and 0 deletions

View File

@ -722,6 +722,7 @@ void AwesomeWidget::addBar()
i18n("File name"), QLineEdit::Normal,
QString(""), &ok);
if ((!ok) || (name.isEmpty())) return;
if (!name.endsWith(QString(".desktop"))) name += QString(".desktop");
QStringList bars;
bars.append(keys.filter((QRegExp(QString("cpu(?!cl).*")))));
bars.append(keys.filter((QRegExp(QString("gpu")))));
@ -746,6 +747,7 @@ void AwesomeWidget::addCustomScript()
i18n("File name"), QLineEdit::Normal,
QString(""), &ok);
if ((!ok) || (name.isEmpty())) return;
if (!name.endsWith(QString(".desktop"))) name += QString(".desktop");
ExtScript *script = new ExtScript(0, name, dirs, debug);
script->showConfiguration();