move the window title after the loadUi method

otherwise the title get's overwritten again
Found here in the comments:
https://stackoverflow.com/a/32097504/7723859
This commit is contained in:
Andreas Zweili 2019-01-26 10:38:30 +01:00
parent 95fa81c13e
commit ccfbc843f1
1 changed files with 1 additions and 1 deletions

View File

@ -10,11 +10,11 @@ from config import Config
class MainWindow(QMainWindow):
def __init__(self, *args, **kwargs):
super(MainWindow, self).__init__(*args, **kwargs)
self.setWindowTitle("Borg-Qt")
QCoreApplication.setApplicationName("borg-qt")
dir_path = os.path.dirname(os.path.realpath(__file__))
ui_path = os.path.join(dir_path + '/static/UI/MainWindow.ui')
uic.loadUi(ui_path, self)
self.setWindowTitle("Borg-Qt")
self.config = Config()