mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fixed UI updates on switching to/from fullscreen
This commit is contained in:
@@ -331,11 +331,16 @@ void CToggleBase::setEnabled(bool enabled)
|
||||
// for overrides
|
||||
}
|
||||
|
||||
void CToggleBase::setSelectedSilent(bool on)
|
||||
{
|
||||
selected = on;
|
||||
doSelect(on);
|
||||
}
|
||||
|
||||
void CToggleBase::setSelected(bool on)
|
||||
{
|
||||
bool changed = (on != selected);
|
||||
selected = on;
|
||||
doSelect(on);
|
||||
setSelectedSilent(on);
|
||||
if (changed)
|
||||
callback(on);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user