mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Save section expand state in Info memento.
This commit is contained in:
@@ -184,6 +184,16 @@ SectionWithToggle *SectionWithToggle::setToggleShown(
|
||||
return this;
|
||||
}
|
||||
|
||||
void SectionWithToggle::toggle(bool toggled) {
|
||||
if (_toggle) {
|
||||
_toggle->setChecked(toggled);
|
||||
}
|
||||
}
|
||||
|
||||
bool SectionWithToggle::toggled() const {
|
||||
return _toggle ? _toggle->checked() : false;
|
||||
}
|
||||
|
||||
rpl::producer<bool> SectionWithToggle::toggledValue() const {
|
||||
if (_toggle) {
|
||||
return rpl::single(_toggle->checked())
|
||||
|
Reference in New Issue
Block a user