Show file dialog option only on Linux

This commit is contained in:
Eric Kotato 2021-03-31 23:26:33 +03:00
parent e26085b627
commit 273200adbf

View file

@ -466,6 +466,7 @@ void SetupKotatoSystem(
} }
#endif // !DESKTOP_APP_DISABLE_GTK_INTEGRATION #endif // !DESKTOP_APP_DISABLE_GTK_INTEGRATION
if (Platform::IsLinux()) {
AddButtonWithLabel( AddButtonWithLabel(
container, container,
tr::ktg_settings_file_dialog_type(), tr::ktg_settings_file_dialog_type(),
@ -483,6 +484,7 @@ void SetupKotatoSystem(
::Kotato::JsonSettings::Write(); ::Kotato::JsonSettings::Write();
}, false)); }, false));
}); });
}
if (Platform::IsMac()) { if (Platform::IsMac()) {
const auto useNativeDecorationsToggled = Ui::CreateChild<rpl::event_stream<bool>>( const auto useNativeDecorationsToggled = Ui::CreateChild<rpl::event_stream<bool>>(