made DelayQueueWidget use setDirty

removed superfluous code from TiaWidget
This commit is contained in:
thrust26 2020-11-28 16:54:23 +01:00
parent 9d63ec42d2
commit 2d9c9a5003
2 changed files with 10 additions and 6 deletions

View File

@ -50,7 +50,11 @@ void DelayQueueWidget::loadConfig() {
using Common::Base;
for (auto&& line : myLines) {
if (!delayQueueIterator->isValid()) {
if(line != "")
{
setDirty();
line = "";
}
continue;
}
@ -81,7 +85,11 @@ void DelayQueueWidget::loadConfig() {
break;
}
if(line != ss.str())
{
setDirty();
line = ss.str();
}
delayQueueIterator->next();
}
}

View File

@ -919,14 +919,10 @@ void TiaWidget::handleCommand(CommandSender* sender, int cmd, int data, int id)
case kRefP0ID:
tia.refP0(myRefP0->getState() ? 1 : 0);
myGRP0->setIntState(myGRP0->getIntState(), !myRefP0->getState());
myGRP0Old->setIntState(myGRP0Old->getIntState(), !myRefP0->getState());
break;
case kRefP1ID:
tia.refP1(myRefP1->getState() ? 1 : 0);
myGRP1->setIntState(myGRP1->getIntState(), !myRefP1->getState());
myGRP1Old->setIntState(myGRP1Old->getIntState(), !myRefP1->getState());
break;
case kDelP0ID: