1
0
Fork 0
mirror of synced 2024-06-02 18:54:41 +12:00

Some fixes for Windows

This commit is contained in:
BuildTools 2021-05-21 16:22:30 +02:00
parent af69be5e5c
commit 0b74eb95e6
3 changed files with 11 additions and 6 deletions

View file

@ -58,11 +58,11 @@ class App(QApplication):
self.setApplicationName("Rare")
self.setOrganizationName("Rare")
settings = QSettings()
if args.disable_protondb:
settings.setValue("disable_protondb", True)
if args.enable_protondb:
settings.remove("disable_protondb")
if os.name != "nt":
if args.disable_protondb:
settings.setValue("disable_protondb", True)
if args.enable_protondb:
settings.remove("disable_protondb")
# Translator
self.translator = QTranslator()

View file

@ -74,6 +74,8 @@ class GameSettings(QWidget, Ui_GameSettings):
self.linux_settings = LinuxAppSettings(core)
self.linux_layout.addWidget(self.linux_settings)
else:
self.proton_groupbox.setVisible(False)
# startparams, skip_update_check

View file

@ -154,7 +154,10 @@ class RareSettings(QWidget, Ui_RareSettings):
return
logger.info("Move Images")
for i in os.listdir(old_path):
shutil.move(os.path.join(old_path, i), os.path.join(new_path, i))
try:
shutil.move(os.path.join(old_path, i), os.path.join(new_path, i))
except:
pass
os.rmdir(old_path)
self.img_dir_path = new_path
self.settings.setValue("img_dir", new_path)