mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-04-24 15:37:23 +00:00
derop notification on status changing since it causes plasmacrash
This commit is contained in:
parent
7dc1a5eda3
commit
69f6a3135b
@ -158,12 +158,12 @@ void NetctlAdds::setDataBySource(const QString sourceName, const QVariantMap dat
|
|||||||
|
|
||||||
bool needUpdate = (values[sourceName] != data[QString("value")].toString());
|
bool needUpdate = (values[sourceName] != data[QString("value")].toString());
|
||||||
values[sourceName] = data[QString("value")].toString();
|
values[sourceName] = data[QString("value")].toString();
|
||||||
if ((needUpdate) && (sourceName == QString("active"))) {
|
// if ((needUpdate) && (sourceName == QString("active"))) {
|
||||||
if (values[sourceName] == QString("true"))
|
// if (values[sourceName] == QString("true"))
|
||||||
sendNotification(QString("Info"), i18n("Network status has been changed to active"));
|
// sendNotification(QString("Info"), i18n("Network status has been changed to active"));
|
||||||
else
|
// else
|
||||||
sendNotification(QString("Info"), i18n("Network status has been changed to inactive"));
|
// sendNotification(QString("Info"), i18n("Network status has been changed to inactive"));
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (needUpdate) emit(needToBeUpdated());
|
if (needUpdate) emit(needToBeUpdated());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user