Skip to content

Commit 730c9e7

Browse files
committed
fixes, again
1 parent 2b99b8a commit 730c9e7

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

UI_logic/MainWindow.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import requests
77
import winreg
88
from PyQt5.QtGui import QDesktopServices, QColor, QBrush, QIcon
9-
from PyQt5.QtWidgets import QMainWindow, QFileDialog, QListWidgetItem, QProgressDialog, QApplication
9+
from PyQt5.QtWidgets import QMainWindow, QFileDialog, QListWidgetItem, QProgressDialog, QApplication, QCheckBox
1010
from PyQt5.QtCore import Qt, QUrl, QTimer, QTranslator, QLocale
1111
from subprocess import run, CREATE_NO_WINDOW
1212
from pathlib import Path
@@ -65,7 +65,7 @@ def __init__(self):
6565
self.creamapidone = False
6666

6767
self.GITHUB_REPO = "https://api.github.com/repos/seuyh/stellaris-dlc-unlocker/releases/latest"
68-
self.current_version = '2.263'
68+
self.current_version = '2.27'
6969
self.version_label.setText(f'Ver. {str(self.current_version)}')
7070

7171
self.copy_files_radio.setVisible(False)
@@ -91,6 +91,10 @@ def __init__(self):
9191
self.connection_thread.github_status_checked.connect(self.handle_github_status)
9292
self.connection_thread.server_status_checked.connect(self.handle_server_status)
9393

94+
# self.full_reinstall_checkbox.toggled.connect(self.on_full_reinstall_checkbox_toggled)
95+
# self.alternative_unloc_checkbox.toggled.connect(self.alternative_unloc_checkbox)
96+
# self.skip_launcher_reinstall_checbox.toggled.connect(self.skip_launcher_reinstall_checbox)
97+
9498
self.setWindowTitle("Stellaris DLC Unlocker")
9599
self.setWindowIcon(QIcon(f'{self.parent_directory}/UI/icons/stellaris.png'))
96100

@@ -159,6 +163,19 @@ def apply_language(self, lang):
159163

160164
self.retranslateUi(self)
161165

166+
def on_full_reinstall_checkbox_toggled(self, checked):
167+
if checked:
168+
self.skip_launcher_reinstall_checbox.setChecked(False)
169+
170+
def on_alternative_unloc_checkbox_toggled(self, checked):
171+
if checked:
172+
self.skip_launcher_reinstall_checbox.setChecked(False)
173+
174+
def on_skip_launcher_reinstall_checbox_toggled(self, checked):
175+
if checked:
176+
self.full_reinstall_checkbox.setChecked(False)
177+
self.alternative_unloc_checkbox.setChecked(False)
178+
162179
def showEvent(self, event):
163180
super(MainWindow, self).showEvent(event)
164181
self.apply_initial_language()

0 commit comments

Comments
 (0)