mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
version 0.8.51 prepared, with win7 and winxp fix
This commit is contained in:
parent
2039cd4660
commit
6a05924dcf
10 changed files with 47 additions and 46 deletions
|
@ -1,11 +1,11 @@
|
||||||
@echo OFF
|
@echo OFF
|
||||||
|
|
||||||
set "AppVersionStrMajor=0.8"
|
set "AppVersionStrMajor=0.8"
|
||||||
set "AppVersion=8050"
|
set "AppVersion=8051"
|
||||||
set "AppVersionStrSmall=0.8.50"
|
set "AppVersionStrSmall=0.8.51"
|
||||||
set "AppVersionStr=0.8.50"
|
set "AppVersionStr=0.8.51"
|
||||||
set "AppVersionStrFull=0.8.50.0"
|
set "AppVersionStrFull=0.8.51.0"
|
||||||
set "DevChannel=1"
|
set "DevChannel=0"
|
||||||
|
|
||||||
if %DevChannel% neq 0 goto preparedev
|
if %DevChannel% neq 0 goto preparedev
|
||||||
|
|
||||||
|
|
|
@ -658,7 +658,7 @@ void Application::checkMapVersion() {
|
||||||
QString versionFeatures;
|
QString versionFeatures;
|
||||||
if (cDevVersion() && Local::oldMapVersion() < 8050) {
|
if (cDevVersion() && Local::oldMapVersion() < 8050) {
|
||||||
versionFeatures = QString::fromUtf8("\xe2\x80\x94 Bug fixes in Windows notifications\n\xe2\x80\x94 Fixed input methods on Linux (Fcitx and IBus)");// .replace('@', qsl("@") + QChar(0x200D));
|
versionFeatures = QString::fromUtf8("\xe2\x80\x94 Bug fixes in Windows notifications\n\xe2\x80\x94 Fixed input methods on Linux (Fcitx and IBus)");// .replace('@', qsl("@") + QChar(0x200D));
|
||||||
} else if (!cDevVersion() && Local::oldMapVersion() < 8048) {
|
} else if (!cDevVersion() && Local::oldMapVersion() < 8051) {
|
||||||
versionFeatures = lang(lng_new_version_text).trimmed();
|
versionFeatures = lang(lng_new_version_text).trimmed();
|
||||||
}
|
}
|
||||||
if (!versionFeatures.isEmpty()) {
|
if (!versionFeatures.isEmpty()) {
|
||||||
|
|
|
@ -17,9 +17,9 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
static const int32 AppVersion = 8050;
|
static const int32 AppVersion = 8051;
|
||||||
static const wchar_t *AppVersionStr = L"0.8.50";
|
static const wchar_t *AppVersionStr = L"0.8.51";
|
||||||
static const bool DevVersion = true;
|
static const bool DevVersion = false;
|
||||||
|
|
||||||
static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)";
|
static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)";
|
||||||
static const wchar_t *AppName = L"Telegram Desktop";
|
static const wchar_t *AppName = L"Telegram Desktop";
|
||||||
|
|
|
@ -969,7 +969,7 @@ void DialogsListWidget::selectSkip(int32 direction) {
|
||||||
if (!sel) {
|
if (!sel) {
|
||||||
if (dialogs.list.count && direction > 0) {
|
if (dialogs.list.count && direction > 0) {
|
||||||
sel = dialogs.list.begin;
|
sel = dialogs.list.begin;
|
||||||
} else if (contactsNoDialogs.list.count && direction > 0) {
|
} else if (false && contactsNoDialogs.list.count && direction > 0) {
|
||||||
sel = contactsNoDialogs.list.begin;
|
sel = contactsNoDialogs.list.begin;
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
|
@ -977,14 +977,14 @@ void DialogsListWidget::selectSkip(int32 direction) {
|
||||||
} else if (direction > 0) {
|
} else if (direction > 0) {
|
||||||
if (sel->next->next) {
|
if (sel->next->next) {
|
||||||
sel = sel->next;
|
sel = sel->next;
|
||||||
} else if (sel->next == dialogs.list.end && contactsNoDialogs.list.count) {
|
} else if (false && sel->next == dialogs.list.end && contactsNoDialogs.list.count) {
|
||||||
sel = contactsNoDialogs.list.begin;
|
sel = contactsNoDialogs.list.begin;
|
||||||
contactSel = true;
|
contactSel = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (sel->prev) {
|
if (sel->prev) {
|
||||||
sel = sel->prev;
|
sel = sel->prev;
|
||||||
} else if (sel == contactsNoDialogs.list.begin && dialogs.list.count) {
|
} else if (false && sel == contactsNoDialogs.list.begin && dialogs.list.count) {
|
||||||
sel = dialogs.list.end->prev;
|
sel = dialogs.list.end->prev;
|
||||||
contactSel = false;
|
contactSel = false;
|
||||||
}
|
}
|
||||||
|
@ -1042,7 +1042,7 @@ void DialogsListWidget::scrollToPeer(const PeerId &peer, MsgId msgId) {
|
||||||
DialogsList::RowByPeer::const_iterator i = dialogs.list.rowByPeer.constFind(peer);
|
DialogsList::RowByPeer::const_iterator i = dialogs.list.rowByPeer.constFind(peer);
|
||||||
if (i != dialogs.list.rowByPeer.cend()) {
|
if (i != dialogs.list.rowByPeer.cend()) {
|
||||||
fromY = i.value()->pos * st::dlgHeight;
|
fromY = i.value()->pos * st::dlgHeight;
|
||||||
} else {
|
} else if (false) {
|
||||||
i = contactsNoDialogs.list.rowByPeer.constFind(peer);
|
i = contactsNoDialogs.list.rowByPeer.constFind(peer);
|
||||||
if (i != contactsNoDialogs.list.rowByPeer.cend()) {
|
if (i != contactsNoDialogs.list.rowByPeer.cend()) {
|
||||||
fromY = (i.value()->pos + dialogs.list.count) * st::dlgHeight;
|
fromY = (i.value()->pos + dialogs.list.count) * st::dlgHeight;
|
||||||
|
@ -1077,7 +1077,7 @@ void DialogsListWidget::selectSkipPage(int32 pixels, int32 direction) {
|
||||||
if (!sel) {
|
if (!sel) {
|
||||||
if (direction > 0 && dialogs.list.count) {
|
if (direction > 0 && dialogs.list.count) {
|
||||||
sel = dialogs.list.begin;
|
sel = dialogs.list.begin;
|
||||||
} else if (direction > 0 && contactsNoDialogs.list.count) {
|
} else if (false && direction > 0 && contactsNoDialogs.list.count) {
|
||||||
sel = contactsNoDialogs.list.begin;
|
sel = contactsNoDialogs.list.begin;
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
|
@ -1087,7 +1087,7 @@ void DialogsListWidget::selectSkipPage(int32 pixels, int32 direction) {
|
||||||
while (toSkip-- && sel->next->next) {
|
while (toSkip-- && sel->next->next) {
|
||||||
sel = sel->next;
|
sel = sel->next;
|
||||||
}
|
}
|
||||||
if (toSkip >= 0 && sel->next == dialogs.list.end && contactsNoDialogs.list.count) {
|
if (false && toSkip >= 0 && sel->next == dialogs.list.end && contactsNoDialogs.list.count) {
|
||||||
sel = contactsNoDialogs.list.begin;
|
sel = contactsNoDialogs.list.begin;
|
||||||
while (toSkip-- && sel->next->next) {
|
while (toSkip-- && sel->next->next) {
|
||||||
sel = sel->next;
|
sel = sel->next;
|
||||||
|
@ -1358,17 +1358,17 @@ void DialogsListWidget::peerAfter(const PeerData *inPeer, MsgId inMsg, PeerData
|
||||||
if (_state == DefaultState) {
|
if (_state == DefaultState) {
|
||||||
DialogsList::RowByPeer::const_iterator i = dialogs.list.rowByPeer.constFind(inPeer->id);
|
DialogsList::RowByPeer::const_iterator i = dialogs.list.rowByPeer.constFind(inPeer->id);
|
||||||
if (i == dialogs.list.rowByPeer.constEnd()) {
|
if (i == dialogs.list.rowByPeer.constEnd()) {
|
||||||
i = contactsNoDialogs.list.rowByPeer.constFind(inPeer->id);
|
//i = contactsNoDialogs.list.rowByPeer.constFind(inPeer->id);
|
||||||
if (i == contactsNoDialogs.list.rowByPeer.cend()) {
|
//if (i == contactsNoDialogs.list.rowByPeer.cend()) {
|
||||||
outPeer = 0;
|
// outPeer = 0;
|
||||||
outMsg = 0;
|
// outMsg = 0;
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
if (i.value()->next != contactsNoDialogs.list.end) {
|
//if (i.value()->next != contactsNoDialogs.list.end) {
|
||||||
outPeer = i.value()->next->history->peer;
|
// outPeer = i.value()->next->history->peer;
|
||||||
outMsg = ShowAtUnreadMsgId;
|
// outMsg = ShowAtUnreadMsgId;
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
outPeer = 0;
|
outPeer = 0;
|
||||||
outMsg = 0;
|
outMsg = 0;
|
||||||
return;
|
return;
|
||||||
|
@ -1378,7 +1378,7 @@ void DialogsListWidget::peerAfter(const PeerData *inPeer, MsgId inMsg, PeerData
|
||||||
outPeer = i.value()->next->history->peer;
|
outPeer = i.value()->next->history->peer;
|
||||||
outMsg = ShowAtUnreadMsgId;
|
outMsg = ShowAtUnreadMsgId;
|
||||||
return;
|
return;
|
||||||
} else if (contactsNoDialogs.list.count) {
|
} else if (false && contactsNoDialogs.list.count) {
|
||||||
outPeer = contactsNoDialogs.list.begin->history->peer;
|
outPeer = contactsNoDialogs.list.begin->history->peer;
|
||||||
outMsg = ShowAtUnreadMsgId;
|
outMsg = ShowAtUnreadMsgId;
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -27,8 +27,14 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
|
||||||
#include "passcodewidget.h"
|
#include "passcodewidget.h"
|
||||||
|
|
||||||
#include <Shobjidl.h>
|
#include <Shobjidl.h>
|
||||||
#include <dbghelp.h>
|
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
|
|
||||||
|
#include <roapi.h>
|
||||||
|
#include <wrl\client.h>
|
||||||
|
#include <wrl\implements.h>
|
||||||
|
#include <windows.ui.notifications.h>
|
||||||
|
|
||||||
|
#include <dbghelp.h>
|
||||||
#include <Shlwapi.h>
|
#include <Shlwapi.h>
|
||||||
#include <Strsafe.h>
|
#include <Strsafe.h>
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
|
@ -46,11 +52,6 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
|
||||||
#include <intsafe.h>
|
#include <intsafe.h>
|
||||||
#include <guiddef.h>
|
#include <guiddef.h>
|
||||||
|
|
||||||
#include <roapi.h>
|
|
||||||
#include <wrl\client.h>
|
|
||||||
#include <wrl\implements.h>
|
|
||||||
#include <windows.ui.notifications.h>
|
|
||||||
|
|
||||||
#include <qpa/qplatformnativeinterface.h>
|
#include <qpa/qplatformnativeinterface.h>
|
||||||
|
|
||||||
#define min(a, b) ((a) < (b) ? (a) : (b))
|
#define min(a, b) ((a) < (b) ? (a) : (b))
|
||||||
|
@ -762,7 +763,7 @@ namespace {
|
||||||
}
|
}
|
||||||
void setupPropSys() {
|
void setupPropSys() {
|
||||||
HINSTANCE procId = LoadLibrary(L"PROPSYS.DLL");
|
HINSTANCE procId = LoadLibrary(L"PROPSYS.DLL");
|
||||||
if (!loadFunction(procId, "PropVariantToString", procId)) return;
|
if (!loadFunction(procId, "PropVariantToString", propVariantToString)) return;
|
||||||
}
|
}
|
||||||
void setupToast(HINSTANCE procId) {
|
void setupToast(HINSTANCE procId) {
|
||||||
if (!propVariantToString) return;
|
if (!propVariantToString) return;
|
||||||
|
@ -2223,7 +2224,7 @@ void RegisterCustomScheme() {
|
||||||
|
|
||||||
void psNewVersion() {
|
void psNewVersion() {
|
||||||
RegisterCustomScheme();
|
RegisterCustomScheme();
|
||||||
if (Local::oldSettingsVersion() < 8050) {
|
if (Local::oldSettingsVersion() < 8051) {
|
||||||
CheckPinnedAppUserModelId();
|
CheckPinnedAppUserModelId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2835,9 +2836,9 @@ void CheckPinnedAppUserModelId() {
|
||||||
|
|
||||||
QString path = pinnedPath();
|
QString path = pinnedPath();
|
||||||
std::wstring p = QDir::toNativeSeparators(path).toStdWString();
|
std::wstring p = QDir::toNativeSeparators(path).toStdWString();
|
||||||
|
|
||||||
WCHAR src[MAX_PATH];
|
WCHAR src[MAX_PATH];
|
||||||
GetModuleFileNameEx(GetCurrentProcess(), nullptr, src, MAX_PATH);
|
GetModuleFileName(GetModuleHandle(0), src, MAX_PATH);
|
||||||
BY_HANDLE_FILE_INFORMATION srcinfo = { 0 };
|
BY_HANDLE_FILE_INFORMATION srcinfo = { 0 };
|
||||||
HANDLE srcfile = CreateFile(src, 0x00, 0x00, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
HANDLE srcfile = CreateFile(src, 0x00, 0x00, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||||
if (srcfile == INVALID_HANDLE_VALUE) return;
|
if (srcfile == INVALID_HANDLE_VALUE) return;
|
||||||
|
|
|
@ -16,7 +16,7 @@ Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
|
||||||
Copyright (c) 2014 John Preston, https://desktop.telegram.org
|
Copyright (c) 2014 John Preston, https://desktop.telegram.org
|
||||||
*/
|
*/
|
||||||
#define __HUGE
|
#define __HUGE
|
||||||
|
#define PSAPI_VERSION 1 // fix WinXP
|
||||||
//#define Q_NO_TEMPLATE_FRIENDS // fix some compiler difference issues
|
//#define Q_NO_TEMPLATE_FRIENDS // fix some compiler difference issues
|
||||||
|
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>0.8.50</string>
|
<string>0.8.51</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
|
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
|
|
Binary file not shown.
|
@ -1707,7 +1707,7 @@
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
COPY_PHASE_STRIP = NO;
|
COPY_PHASE_STRIP = NO;
|
||||||
CURRENT_PROJECT_VERSION = 0.8.50;
|
CURRENT_PROJECT_VERSION = 0.8.51;
|
||||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
@ -1725,7 +1725,7 @@
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
COPY_PHASE_STRIP = YES;
|
COPY_PHASE_STRIP = YES;
|
||||||
CURRENT_PROJECT_VERSION = 0.8.50;
|
CURRENT_PROJECT_VERSION = 0.8.51;
|
||||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||||
GCC_OPTIMIZATION_LEVEL = fast;
|
GCC_OPTIMIZATION_LEVEL = fast;
|
||||||
GCC_PREFIX_HEADER = ./SourceFiles/stdafx.h;
|
GCC_PREFIX_HEADER = ./SourceFiles/stdafx.h;
|
||||||
|
@ -1751,10 +1751,10 @@
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
CODE_SIGN_IDENTITY = "";
|
CODE_SIGN_IDENTITY = "";
|
||||||
COPY_PHASE_STRIP = NO;
|
COPY_PHASE_STRIP = NO;
|
||||||
CURRENT_PROJECT_VERSION = 0.8.50;
|
CURRENT_PROJECT_VERSION = 0.8.51;
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
DYLIB_COMPATIBILITY_VERSION = 0.8;
|
DYLIB_COMPATIBILITY_VERSION = 0.8;
|
||||||
DYLIB_CURRENT_VERSION = 0.8.50;
|
DYLIB_CURRENT_VERSION = 0.8.51;
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
FRAMEWORK_SEARCH_PATHS = "";
|
FRAMEWORK_SEARCH_PATHS = "";
|
||||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
||||||
|
@ -1885,10 +1885,10 @@
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
CODE_SIGN_IDENTITY = "";
|
CODE_SIGN_IDENTITY = "";
|
||||||
COPY_PHASE_STRIP = NO;
|
COPY_PHASE_STRIP = NO;
|
||||||
CURRENT_PROJECT_VERSION = 0.8.50;
|
CURRENT_PROJECT_VERSION = 0.8.51;
|
||||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||||
DYLIB_COMPATIBILITY_VERSION = 0.8;
|
DYLIB_COMPATIBILITY_VERSION = 0.8;
|
||||||
DYLIB_CURRENT_VERSION = 0.8.50;
|
DYLIB_CURRENT_VERSION = 0.8.51;
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
FRAMEWORK_SEARCH_PATHS = "";
|
FRAMEWORK_SEARCH_PATHS = "";
|
||||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
echo 0.8 8050 0.8.50 1
|
echo 0.8 8051 0.8.51 0
|
||||||
# AppVersionStrMajor AppVersion AppVersionStr DevChannel
|
# AppVersionStrMajor AppVersion AppVersionStr DevChannel
|
||||||
|
|
Loading…
Add table
Reference in a new issue