Prepare for Windows builds

This commit is contained in:
kramo
2023-03-19 01:06:00 +01:00
parent e709617370
commit c5b263c71e
7 changed files with 198 additions and 138 deletions

View File

@@ -17,6 +17,7 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
import os
import sys
import time
@@ -58,6 +59,9 @@ class CartridgesApplication(Adw.Application):
self.create_action("add_game", self.on_add_game_action, ["<primary>n"])
self.create_action("remove_game", self.on_remove_game_action)
if os.name == "nt":
self.lookup_action("bottles_import").set_enabled(False)
self.win = None
def do_activate(self):