|
7 | 7 | QFileDialog, QCheckBox, QHBoxLayout, QSpacerItem, QSizePolicy |
8 | 8 | ) |
9 | 9 | from PyQt5.QtGui import QFont |
10 | | -from update import check_for_update, result_update, update_application, CURRENT_VERSION, LATEST_VERSION |
| 10 | +from update import check_update_applicationfor_update, result_update, update_application, CURRENT_VERSION, LATEST_VERSION |
11 | 11 | from debug import debug_print |
12 | 12 |
|
13 | 13 | CONFIG_FILE = 'config.json' |
@@ -80,7 +80,7 @@ def init_main_screen(self): |
80 | 80 |
|
81 | 81 | self.version_credit_layout = QHBoxLayout() |
82 | 82 |
|
83 | | - self.credit_label = QLabel("AdminFreeExec v0.1.0 by Rompelhd", self) |
| 83 | + self.credit_label = QLabel("AdminFreeExec v" + CURRENT_VERSION + " by Rompelhd", self) |
84 | 84 | self.credit_label.setFont(QFont("Arial", 10)) |
85 | 85 | self.credit_label.setAlignment(Qt.AlignRight) |
86 | 86 |
|
@@ -121,7 +121,7 @@ def show_settings_screen(self): |
121 | 121 |
|
122 | 122 | self.version_credit_layout = QHBoxLayout() |
123 | 123 |
|
124 | | - self.credit_label = QLabel("AdminFreeExec v0.2.1 by Rompelhd", self) |
| 124 | + self.credit_label = QLabel("AdminFreeExec v" + CURRENT_VERSION + " by Rompelhd", self) |
125 | 125 | self.credit_label.setFont(QFont("Arial", 10)) |
126 | 126 | self.credit_label.setAlignment(Qt.AlignRight) |
127 | 127 |
|
@@ -171,7 +171,7 @@ def show_update_screen(self): |
171 | 171 |
|
172 | 172 | self.version_credit_layout = QHBoxLayout() |
173 | 173 |
|
174 | | - self.credit_label = QLabel(f"AdminFreeExec v{CURRENT_VERSION} by Rompelhd", self) |
| 174 | + self.credit_label = QLabel("AdminFreeExec v" + CURRENT_VERSION + " by Rompelhd", self) |
175 | 175 | self.credit_label.setFont(QFont("Arial", 10)) |
176 | 176 | self.credit_label.setAlignment(Qt.AlignRight) |
177 | 177 |
|
@@ -235,7 +235,7 @@ def apply_theme(self): |
235 | 235 | self.setStyleSheet("background-color: white; color: black;") |
236 | 236 |
|
237 | 237 | if __name__ == '__main__': |
238 | | - check_for_update() |
| 238 | + check_update_applicationfor_update() |
239 | 239 |
|
240 | 240 | app = QApplication(sys.argv) |
241 | 241 | window = DragDropWindow() |
|
0 commit comments