mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-17 15:49:58 +00:00
* add .desktop suffix to files if they have not
* remove frameshape
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user