1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

fixed if style is missing

This commit is contained in:
Dummerle 2021-01-12 16:41:24 +01:00
parent ae8f650f95
commit e0dd3fad24

View file

@ -1,4 +1,5 @@
import logging
import os
import sys
from PyQt5.QtWidgets import QApplication, QMessageBox
@ -20,7 +21,7 @@ core = LegendaryCore()
def main():
app = QApplication(sys.argv)
if RareConfig.THEME == "default":
if RareConfig.THEME == "default" and os.path.exists(style_path):
app.setStyleSheet(open(style_path).read())
# app.setStyleSheet(open("Styles/RareStyle.css").read())
logger.info("Try if you are logged in")