2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Show Info if writing is forbidden.

This commit is contained in:
John Preston
2017-09-19 22:44:34 +03:00
parent 48cbdd9d40
commit 1a4d326abb
7 changed files with 68 additions and 11 deletions

View File

@@ -169,6 +169,7 @@ void AuthSessionData::setTabbedSelectorSectionEnabled(bool enabled) {
if (enabled) {
setThirdSectionInfoEnabled(false);
}
setTabbedReplacedWithInfo(false);
}
void AuthSessionData::setThirdSectionInfoEnabled(bool enabled) {
@@ -177,10 +178,18 @@ void AuthSessionData::setThirdSectionInfoEnabled(bool enabled) {
if (enabled) {
setTabbedSelectorSectionEnabled(false);
}
setTabbedReplacedWithInfo(false);
_thirdSectionInfoEnabledValue.fire_copy(enabled);
}
}
void AuthSessionData::setTabbedReplacedWithInfo(bool enabled) {
if (_tabbedReplacedWithInfo != enabled) {
_tabbedReplacedWithInfo = enabled;
_tabbedReplacedWithInfoValue.fire_copy(enabled);
}
}
QString AuthSessionData::getSoundPath(const QString &key) const {
auto it = _variables.soundOverrides.constFind(key);
if (it != _variables.soundOverrides.end()) {