mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix history visibility edit button.
Regression was introduced in c3386fba52
.
Fixes #24691.
This commit is contained in:
parent
fc8ea688a3
commit
8f0ba749d1
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ void Controller::refreshHistoryVisibility() {
|
||||||
const auto withUsername = _typeDataSavedValue
|
const auto withUsername = _typeDataSavedValue
|
||||||
&& (_typeDataSavedValue->privacy == Privacy::HasUsername);
|
&& (_typeDataSavedValue->privacy == Privacy::HasUsername);
|
||||||
_controls.historyVisibilityWrap->toggle(
|
_controls.historyVisibilityWrap->toggle(
|
||||||
(withUsername
|
(!withUsername
|
||||||
&& !_channelHasLocationOriginalValue
|
&& !_channelHasLocationOriginalValue
|
||||||
&& (!_linkedChatSavedValue || !*_linkedChatSavedValue)),
|
&& (!_linkedChatSavedValue || !*_linkedChatSavedValue)),
|
||||||
anim::type::instant);
|
anim::type::instant);
|
||||||
|
|
Loading…
Add table
Reference in a new issue