Now the "Releases" checkbox is True by default

This commit is contained in:
Wabaano 2024-04-15 20:26:26 -03:00 committed by GitHub
parent f71b9ae41a
commit 64fab40377
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,7 +134,7 @@ class PicomcVersionSelector(QWidget):
snapshot_checkbox = QCheckBox('Snapshots')
alpha_checkbox = QCheckBox('Alpha')
beta_checkbox = QCheckBox('Beta')
release_checkbox.setChecked(True)
# Create dropdown menu for versions
version_combo = QComboBox()
@ -166,7 +166,8 @@ class PicomcVersionSelector(QWidget):
versions = output.splitlines()
versions = [version.replace('[local]', ' ').strip() for version in versions]
version_combo.addItems(versions)
update_versions()
release_checkbox.clicked.connect(update_versions)
snapshot_checkbox.clicked.connect(update_versions)
alpha_checkbox.clicked.connect(update_versions)