Force GTK file chooser only in the official builds.
This commit is contained in:
parent
619aca04f9
commit
45a6985df5
|
@ -100,6 +100,9 @@ using Type = ::FileDialog::internal::Type;
|
|||
|
||||
#ifndef TDESKTOP_DISABLE_GTK_INTEGRATION
|
||||
bool NativeSupported() {
|
||||
#ifndef TDESKTOP_FORCE_GTK_FILE_DIALOG
|
||||
return false;
|
||||
#endif // TDESKTOP_FORCE_GTK_FILE_DIALOG
|
||||
return Platform::internal::GdkHelperLoaded()
|
||||
&& (Libs::gtk_widget_hide_on_delete != nullptr)
|
||||
&& (Libs::gtk_clipboard_store != nullptr)
|
||||
|
|
|
@ -130,6 +130,7 @@
|
|||
[ '"<(official_build_target)" != ""', {
|
||||
'defines': [
|
||||
'TDESKTOP_OFFICIAL_TARGET=<(official_build_target)',
|
||||
'TDESKTOP_FORCE_GTK_FILE_DIALOG',
|
||||
],
|
||||
'dependencies': [
|
||||
'utils.gyp:Packer',
|
||||
|
|
Loading…
Reference in New Issue