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

View File

@ -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%..

View File

@ -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";

View File

@ -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;

View File

@ -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();
}

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();
}
}
}

View File

@ -11,7 +11,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.7.1</string>
<string>0.7.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>

Binary file not shown.

View File

@ -1577,7 +1577,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 0.7.1;
CURRENT_PROJECT_VERSION = 0.7.2;
DEBUG_INFORMATION_FORMAT = dwarf;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
@ -1595,7 +1595,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
COPY_PHASE_STRIP = YES;
CURRENT_PROJECT_VERSION = 0.7.1;
CURRENT_PROJECT_VERSION = 0.7.2;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_OPTIMIZATION_LEVEL = fast;
GCC_PREFIX_HEADER = ./SourceFiles/stdafx.h;
@ -1621,10 +1621,10 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 0.7.1;
CURRENT_PROJECT_VERSION = 0.7.2;
DEBUG_INFORMATION_FORMAT = dwarf;
DYLIB_COMPATIBILITY_VERSION = 0.7;
DYLIB_CURRENT_VERSION = 0.7.1;
DYLIB_CURRENT_VERSION = 0.7.2;
ENABLE_STRICT_OBJC_MSGSEND = YES;
FRAMEWORK_SEARCH_PATHS = "";
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
@ -1764,10 +1764,10 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 0.7.1;
CURRENT_PROJECT_VERSION = 0.7.2;
DEBUG_INFORMATION_FORMAT = dwarf;
DYLIB_COMPATIBILITY_VERSION = 0.7;
DYLIB_CURRENT_VERSION = 0.7.1;
DYLIB_CURRENT_VERSION = 0.7.2;
ENABLE_STRICT_OBJC_MSGSEND = YES;
FRAMEWORK_SEARCH_PATHS = "";
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;

View File

@ -1,2 +1,2 @@
echo 7001 0.7.1
echo 7002 0.7.2