Some fixes for Windows
This commit is contained in:
parent
af69be5e5c
commit
0b74eb95e6
10
rare/app.py
10
rare/app.py
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue