Prepare for Windows builds
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
import os
|
||||
|
||||
from gi.repository import Adw, Gio, GLib, Gtk
|
||||
|
||||
|
||||
@@ -24,6 +26,9 @@ from gi.repository import Adw, Gio, GLib, Gtk
|
||||
class PreferencesWindow(Adw.PreferencesWindow):
|
||||
__gtype_name__ = "PreferencesWindow"
|
||||
|
||||
page = Gtk.Template.Child()
|
||||
bottles_group = Gtk.Template.Child()
|
||||
|
||||
exit_after_launch_switch = Gtk.Template.Child()
|
||||
import_epic_games_switch = Gtk.Template.Child()
|
||||
import_gog_games_switch = Gtk.Template.Child()
|
||||
@@ -102,3 +107,6 @@ class PreferencesWindow(Adw.PreferencesWindow):
|
||||
self.bottles_file_chooser_button.connect(
|
||||
"clicked", choose_folder, set_bottles_dir
|
||||
)
|
||||
|
||||
if os.name == "nt":
|
||||
self.page.remove(self.bottles_group)
|
||||
|
||||
Reference in New Issue
Block a user