mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Use custom gtk file dialog only on gtk-based DEs
This commit is contained in:
@@ -277,12 +277,12 @@ bool IsGtkIntegrationForced() {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IsGtkFileDialogForced() {
|
||||
#ifdef TDESKTOP_FORCE_GTK_FILE_DIALOG
|
||||
bool UseGtkFileDialog() {
|
||||
#ifdef TDESKTOP_USE_GTK_FILE_DIALOG
|
||||
return true;
|
||||
#else // TDESKTOP_FORCE_GTK_FILE_DIALOG
|
||||
#else // TDESKTOP_USE_GTK_FILE_DIALOG
|
||||
return false;
|
||||
#endif // !TDESKTOP_FORCE_GTK_FILE_DIALOG
|
||||
#endif // !TDESKTOP_USE_GTK_FILE_DIALOG
|
||||
}
|
||||
|
||||
bool IsQtPluginsBundled() {
|
||||
@@ -668,7 +668,7 @@ void start() {
|
||||
if(IsStaticBinary()
|
||||
|| InAppImage()
|
||||
|| InSnap()
|
||||
|| IsGtkFileDialogForced()
|
||||
|| UseGtkFileDialog()
|
||||
|| IsQtPluginsBundled()) {
|
||||
LOG(("Checking for XDG Desktop Portal..."));
|
||||
// this can give us a chance to use a proper file dialog for current session
|
||||
|
Reference in New Issue
Block a user