Refresh display when logical switch state changes
This commit is contained in:
committed by
Raphael Coeffic
parent
4c3f5e3fb4
commit
c0911753e0
@@ -66,7 +66,8 @@ class LogicalSwitchEditPage: public Page
|
|||||||
{
|
{
|
||||||
Page::checkEvents();
|
Page::checkEvents();
|
||||||
if (active != isActive()) {
|
if (active != isActive()) {
|
||||||
headerSwitchName->setTextFlags(isActive() ? FONT(BOLD) | HIGHLIGHT_COLOR : MENU_COLOR);
|
invalidate();
|
||||||
|
headerSwitchName->setTextFlags(isActive() ? FONT(BOLD) | HIGHLIGHT_COLOR : FOCUS_COLOR);
|
||||||
active = !active;
|
active = !active;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user