From df155f6cb5879d5c30bd50af08f2da407dbb0266 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 15 Jul 2020 22:03:28 +0300 Subject: [PATCH] Added rotate button for doc images to touchbar for media view overlay. --- Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index 6124a843f..9952438ad 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -2131,6 +2131,7 @@ void OverlayWidget::displayDocument( const auto &path = location.name(); if (QImageReader(path).canRead()) { _staticContent = PrepareStaticImage(path); + _touchbarDisplay.fire(TouchBarItemType::Photo); } } location.accessDisable();