mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Pause story while viewing the viewers list.
This commit is contained in:
@@ -476,7 +476,8 @@ void Controller::updatePlayingAllowed() {
|
||||
&& _windowActive
|
||||
&& !_paused
|
||||
&& !_replyActive
|
||||
&& !_layerShown);
|
||||
&& !_layerShown
|
||||
&& !_menuShown);
|
||||
}
|
||||
|
||||
void Controller::setPlayingAllowed(bool allowed) {
|
||||
@@ -656,6 +657,13 @@ void Controller::togglePaused(bool paused) {
|
||||
}
|
||||
}
|
||||
|
||||
void Controller::setMenuShown(bool shown) {
|
||||
if (_menuShown != shown) {
|
||||
_menuShown = shown;
|
||||
updatePlayingAllowed();
|
||||
}
|
||||
}
|
||||
|
||||
bool Controller::canDownload() const {
|
||||
return _list && _list->user->isSelf();
|
||||
}
|
||||
|
Reference in New Issue
Block a user