Compare commits

...

6 Commits

Author SHA1 Message Date
John Preston
e368de008d Version 4.7.1.
- Fix media viewer with some system scale settings on Windows.
- Fix calls on Linux.
2023-03-21 20:28:59 +04:00
John Preston
58c5bb7247 Update online after the window active status.
I hope this fixes #26059.
2023-03-21 16:23:38 +04:00
John Preston
f0a96d0aad Update tgcalls with one more fix. 2023-03-21 16:23:37 +04:00
John Preston
ed3e37b06a Fix calls on Linux.
I hope it fixes #26066.
2023-03-21 12:05:59 +04:00
John Preston
83052ec056 Fix translucent windows in some screen scales.
I hope this fixes #25958, problems with the viewer on Windows.
2023-03-21 09:33:45 +04:00
Ilya Fedin
398237b80e Remove pre-defined title from feature request template
There are labels for this purpose, pre-defined title lets people to not to think about the title what leads to feature requests not having title
2023-03-20 21:54:47 +04:00
13 changed files with 30 additions and 28 deletions

View File

@@ -2,7 +2,6 @@
name: Feature request
description: Suggest an idea.
labels: [enhancement]
title: "[Feature Request] "
body:
- type: textarea
attributes:

View File

@@ -10,7 +10,7 @@
<Identity Name="TelegramMessengerLLP.TelegramDesktop"
ProcessorArchitecture="ARCHITECTURE"
Publisher="CN=536BC709-8EE1-4478-AF22-F0F0F26FF64A"
Version="4.7.0.0" />
Version="4.7.1.0" />
<Properties>
<DisplayName>Telegram Desktop</DisplayName>
<PublisherDisplayName>Telegram Messenger LLP</PublisherDisplayName>

View File

@@ -44,8 +44,8 @@ IDI_ICON1 ICON "..\\art\\icon256.ico"
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 4,7,0,0
PRODUCTVERSION 4,7,0,0
FILEVERSION 4,7,1,0
PRODUCTVERSION 4,7,1,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -62,10 +62,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram FZ-LLC"
VALUE "FileDescription", "Telegram Desktop"
VALUE "FileVersion", "4.7.0.0"
VALUE "FileVersion", "4.7.1.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2023"
VALUE "ProductName", "Telegram Desktop"
VALUE "ProductVersion", "4.7.0.0"
VALUE "ProductVersion", "4.7.1.0"
END
END
BLOCK "VarFileInfo"

View File

@@ -35,8 +35,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 4,7,0,0
PRODUCTVERSION 4,7,0,0
FILEVERSION 4,7,1,0
PRODUCTVERSION 4,7,1,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -53,10 +53,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram FZ-LLC"
VALUE "FileDescription", "Telegram Desktop Updater"
VALUE "FileVersion", "4.7.0.0"
VALUE "FileVersion", "4.7.1.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2023"
VALUE "ProductName", "Telegram Desktop"
VALUE "ProductVersion", "4.7.0.0"
VALUE "ProductVersion", "4.7.1.0"
END
END
BLOCK "VarFileInfo"

View File

@@ -22,7 +22,7 @@ constexpr auto AppId = "{53F49750-6209-4FBF-9CA8-7A333C87D1ED}"_cs;
constexpr auto AppNameOld = "Telegram Win (Unofficial)"_cs;
constexpr auto AppName = "Telegram Desktop"_cs;
constexpr auto AppFile = "Telegram"_cs;
constexpr auto AppVersion = 4007000;
constexpr auto AppVersionStr = "4.7";
constexpr auto AppVersion = 4007001;
constexpr auto AppVersionStr = "4.7.1";
constexpr auto AppBetaVersion = false;
constexpr auto AppAlphaVersion = TDESKTOP_ALPHA_VERSION;

View File

@@ -115,16 +115,7 @@ MainWindow::MainWindow(not_null<Window::Controller*> controller)
void MainWindow::initHook() {
Platform::MainWindow::initHook();
QCoreApplication::instance()->installEventFilter(this);
// Non-queued activeChanged handlers must use QtSignalProducer.
connect(
windowHandle(),
&QWindow::activeChanged,
this,
[=] { checkActivation(); },
Qt::QueuedConnection);
}
void MainWindow::applyInitialWorkMode() {

View File

@@ -60,7 +60,7 @@ public:
MainWidget *sessionContent() const;
void checkActivation();
void checkActivation() override;
[[nodiscard]] bool markingAsRead() const;
bool takeThirdSectionFromLayer();

View File

@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "window/main_window.h"
#include "api/api_updates.h"
#include "storage/localstorage.h"
#include "platform/platform_specific.h"
#include "ui/platform/ui_platform_window.h"
@@ -512,9 +513,13 @@ void MainWindow::handleStateChanged(Qt::WindowState state) {
}
void MainWindow::handleActiveChanged() {
checkActivation();
if (isActiveWindow()) {
Core::App().windowActivated(&controller());
}
if (const auto controller = sessionController()) {
controller->session().updates().updateOnline();
}
}
void MainWindow::handleVisibleChanged(bool visible) {

View File

@@ -148,6 +148,8 @@ protected:
void handleActiveChanged();
void handleVisibleChanged(bool visible);
virtual void checkActivation() {
}
virtual void initHook() {
}

View File

@@ -404,7 +404,7 @@ if customRunCommand:
stage('patches', """
git clone https://github.com/desktop-app/patches.git
cd patches
git checkout 4b35c02c5e
git checkout f61eb3406b
""")
stage('msys64', """

View File

@@ -1,7 +1,7 @@
AppVersion 4007000
AppVersion 4007001
AppVersionStrMajor 4.7
AppVersionStrSmall 4.7
AppVersionStr 4.7.0
AppVersionStrSmall 4.7.1
AppVersionStr 4.7.1
BetaChannel 0
AlphaVersion 0
AppVersionOriginal 4.7
AppVersionOriginal 4.7.1

View File

@@ -1,3 +1,8 @@
4.7.1 (21.03.23)
- Fix media viewer with some system scale settings on Windows.
- Fix calls on Linux.
4.7 (19.03.23)
- You can disable all resource-intensive animations and animated stickers and emoji.