From 1ee7801c0b5f74269104fa7d914c9a0821e1628e Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 30 Dec 2019 14:20:12 +0300 Subject: [PATCH] Force GTK file dialog in official builds. --- Telegram/cmake/telegram_options.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/cmake/telegram_options.cmake b/Telegram/cmake/telegram_options.cmake index a29f75c91..cb721e590 100644 --- a/Telegram/cmake/telegram_options.cmake +++ b/Telegram/cmake/telegram_options.cmake @@ -41,6 +41,10 @@ if (TDESKTOP_API_ID STREQUAL "0" OR TDESKTOP_API_HASH STREQUAL "") " ") endif() +if (NOT DESKTOP_APP_SPECIAL_TARGET STREQUAL "") + set(TDESKTOP_FORCE_GTK_FILE_DIALOG ON) +endif() + if (TDESKTOP_FORCE_GTK_FILE_DIALOG AND TDESKTOP_DISABLE_GTK_INTEGRATION) message(FATAL_ERROR "Option TDESKTOP_FORCE_GTK_FILE_DIALOG conflicts with option TDESKTOP_DISABLE_GTK_INTEGRATION.") endif()