mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 14:25:50 +00:00
fixed bugs with dataengine settings saving
This commit is contained in:
@ -50,7 +50,11 @@ AWKeys::AWKeys(QObject *parent)
|
||||
QString debugEnv = environment.value(QString("DEBUG"), QString("no"));
|
||||
debug = (debugEnv == QString("yes"));
|
||||
|
||||
dialog = new QDialog(0);
|
||||
// signals
|
||||
connect(this, SIGNAL(sourceAdded(QString)), this, SLOT(addSource(QString)));
|
||||
|
||||
// init dialog
|
||||
dialog = new QDialog(nullptr);
|
||||
widgetDialog = new QListWidget(dialog);
|
||||
dialogButtons = new QDialogButtonBox(QDialogButtonBox::Open | QDialogButtonBox::Close,
|
||||
Qt::Vertical, dialog);
|
||||
@ -91,6 +95,7 @@ void AWKeys::initKeys(const QString pattern,
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
// clear
|
||||
extQuotes.clear();
|
||||
extScripts.clear();
|
||||
extUpgrade.clear();
|
||||
graphicalItems.clear();
|
||||
@ -213,9 +218,10 @@ bool AWKeys::addDevice(const QString source)
|
||||
(source == QString("pkg")) ||
|
||||
(source == QString("player")) ||
|
||||
(source == QString("ps")) ||
|
||||
(source == QString("update")))
|
||||
(source == QString("update"))) {
|
||||
|
||||
return true;
|
||||
else {
|
||||
} else {
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Source" << source << "not found";
|
||||
return false;
|
||||
}
|
||||
@ -846,6 +852,14 @@ void AWKeys::editItem(const QString type)
|
||||
}
|
||||
|
||||
|
||||
void AWKeys::addSource()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
void AWKeys::editItemButtonPressed(QAbstractButton *button)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
Reference in New Issue
Block a user