mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Telegram: fix window activation by click tray icon
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From a4216b3acfbbbf85a2a78a57e06b0cbf1c67396a Mon Sep 17 00:00:00 2001
|
||||
From 052e0947f4a9e1f27667dfdf2523eae17def0dbf Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Mon, 15 Apr 2019 20:31:29 +1000
|
||||
Subject: Add Haiku support
|
||||
@@ -2664,3 +2664,29 @@ index 622462e..e3ba800 100644
|
||||
--
|
||||
2.21.0
|
||||
|
||||
|
||||
From fb43d97275c97a6215165bb70f9a1869005b9a91 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Thu, 9 May 2019 16:01:42 +1000
|
||||
Subject: Fix window activation by trayicon click
|
||||
|
||||
|
||||
diff --git a/Telegram/SourceFiles/platform/haiku/main_window_haiku.cpp b/Telegram/SourceFiles/platform/haiku/main_window_haiku.cpp
|
||||
index af88932..62aa0fe 100644
|
||||
--- a/Telegram/SourceFiles/platform/haiku/main_window_haiku.cpp
|
||||
+++ b/Telegram/SourceFiles/platform/haiku/main_window_haiku.cpp
|
||||
@@ -58,9 +58,9 @@ void MainWindow::psSetupTrayIcon() {
|
||||
auto icon = QIcon(App::pixmapFromImageInPlace(Core::App().logoNoMargin()));
|
||||
|
||||
trayIcon->setIcon(icon);
|
||||
- trayIcon->setToolTip(str_const_toString(AppName));
|
||||
- connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(toggleTray(QSystemTrayIcon::ActivationReason)), Qt::UniqueConnection);
|
||||
+ trayIcon->setToolTip(str_const_toString(AppName));
|
||||
connect(trayIcon, SIGNAL(messageClicked()), this, SLOT(showFromTray()));
|
||||
+ attachToTrayIcon(trayIcon);
|
||||
App::wnd()->updateTrayMenu();
|
||||
}
|
||||
updateIconCounters();
|
||||
--
|
||||
2.21.0
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ DESCRIPTION="Unofficial build of the original Telegram client for Haiku."
|
||||
HOMEPAGE="https://www.telegram.org/"
|
||||
COPYRIGHT="2013-2019 Telegram"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/telegramdesktop/tdesktop/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="77f4cf6507d1ebc26eaef472aa4817cc57a77c5e3065f6b2afa294530f0633a1"
|
||||
SOURCE_FILENAME="tdesktop-$portVersion.tar.gz"
|
||||
|
||||
Reference in New Issue
Block a user