From dec5db074c72effb1bd2dbe4ff88fc6b9854d4c4 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 16 Dec 2014 22:19:09 +0300 Subject: [PATCH] version 0.7.2 - title buttons after forward fixed --- Telegram/PrepareWin.bat | 6 ++-- Telegram/SourceFiles/config.h | 4 +-- Telegram/SourceFiles/historywidget.cpp | 1 + Telegram/SourceFiles/mainwidget.cpp | 1 + Telegram/SourceFiles/title.cpp | 35 ++++++++++---------- Telegram/Telegram.plist | 2 +- Telegram/Telegram.rc | Bin 5532 -> 5532 bytes Telegram/Telegram.xcodeproj/project.pbxproj | 12 +++---- Telegram/Version.sh | 2 +- 9 files changed, 32 insertions(+), 31 deletions(-) diff --git a/Telegram/PrepareWin.bat b/Telegram/PrepareWin.bat index 7c2241ac4..beed1f8f1 100644 --- a/Telegram/PrepareWin.bat +++ b/Telegram/PrepareWin.bat @@ -1,8 +1,8 @@ @echo OFF -set "AppVersionStrSmall=0.7.1" -set "AppVersionStr=0.7.1" -set "AppVersionStrFull=0.7.1.0" +set "AppVersionStrSmall=0.7.2" +set "AppVersionStr=0.7.2" +set "AppVersionStrFull=0.7.2.0" echo. echo Preparing version %AppVersionStr%.. diff --git a/Telegram/SourceFiles/config.h b/Telegram/SourceFiles/config.h index 6952c2d99..4ba267f44 100644 --- a/Telegram/SourceFiles/config.h +++ b/Telegram/SourceFiles/config.h @@ -17,8 +17,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org */ #pragma once -static const int32 AppVersion = 7001; -static const wchar_t *AppVersionStr = L"0.7.1"; +static const int32 AppVersion = 7002; +static const wchar_t *AppVersionStr = L"0.7.2"; static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)"; static const wchar_t *AppName = L"Telegram Desktop"; diff --git a/Telegram/SourceFiles/historywidget.cpp b/Telegram/SourceFiles/historywidget.cpp index 9020479df..a1591bdb8 100644 --- a/Telegram/SourceFiles/historywidget.cpp +++ b/Telegram/SourceFiles/historywidget.cpp @@ -2312,6 +2312,7 @@ mtpRequestId HistoryWidget::onForward(const PeerId &peer, SelectedItemSet toForw if (toForward.isEmpty()) return 0; if (toForward.size() == 1) { + App::main()->clearSelectedItems(); App::main()->showPeer(peer, 0, false, true); if (!hist) return 0; diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index a0b333d93..d42c473ac 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1610,6 +1610,7 @@ void MainWidget::sentFullDatasReceived(const MTPmessages_StatedMessages &result) void MainWidget::forwardDone(PeerId peer, const MTPmessages_StatedMessages &result) { sentFullDatasReceived(result); if (hider) hider->forwardDone(); + clearSelectedItems(); showPeer(peer, 0, false, true); history.onClearSelected(); } diff --git a/Telegram/SourceFiles/title.cpp b/Telegram/SourceFiles/title.cpp index aa6a627c0..e06945712 100644 --- a/Telegram/SourceFiles/title.cpp +++ b/Telegram/SourceFiles/title.cpp @@ -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(); } } } diff --git a/Telegram/Telegram.plist b/Telegram/Telegram.plist index 004ab1a0d..6fc60c5fb 100644 --- a/Telegram/Telegram.plist +++ b/Telegram/Telegram.plist @@ -11,7 +11,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.7.1 + 0.7.2 CFBundleSignature ???? CFBundleURLTypes diff --git a/Telegram/Telegram.rc b/Telegram/Telegram.rc index c920a590579729fbf1944857fd5dd680194aa6dd..7503b2bd38b45008c609ee767e3e79b0bb06bf61 100644 GIT binary patch delta 50 zcmbQEJx6;(0WYJ`