version 0.7.2 - title buttons after forward fixed

This commit is contained in:
John Preston
2014-12-16 22:19:09 +03:00
parent d10715a96c
commit dec5db074c
9 changed files with 32 additions and 31 deletions
+17 -18
View File
@@ -189,29 +189,28 @@ void TitleWidget::updateBackButton() {
if (!cWideMode() && App::main() && App::main()->selectingPeer()) {
_cancel.show();
if (!_back.isHidden()) _back.hide();
_settings.hide();
_contacts.hide();
_about.hide();
if (!_settings.isHidden()) _settings.hide();
if (!_contacts.isHidden()) _contacts.hide();
if (!_about.isHidden()) _about.hide();
} else {
_cancel.hide();
if (!_cancel.isHidden()) _cancel.hide();
bool authed = (MTP::authedId() > 0);
if (cWideMode()) {
if (!_back.isHidden()) _back.hide();
_settings.show();
if (authed) _contacts.show();
_about.show();
if (_settings.isHidden()) _settings.show();
if (authed && _contacts.isHidden()) _contacts.show();
if (_about.isHidden()) _about.show();
} else {
bool need = App::wnd()->needBackButton();
if (need && _back.isHidden()) {
_back.show();
_settings.hide();
_contacts.hide();
_about.hide();
} else if (!need && !_back.isHidden()) {
_back.hide();
_settings.show();
if (authed) _contacts.show();
_about.show();
if (App::wnd()->needBackButton()) {
if (_back.isHidden()) _back.show();
if (!_settings.isHidden()) _settings.hide();
if (!_contacts.isHidden()) _contacts.hide();
if (!_about.isHidden()) _about.hide();
} else {
if (!_back.isHidden()) _back.hide();
if (_settings.isHidden()) _settings.show();
if (authed && _contacts.isHidden()) _contacts.show();
if (_about.isHidden()) _about.show();
}
}
}