mirror of
https://scm.osdn.net/gitroot/planet/planet-launcher.git
synced 2024-08-15 03:28:13 +00:00
Make feature flags backwards compatible
This commit is contained in:
parent
ff251e0edd
commit
7bc4c1bdb9
1 changed files with 8 additions and 7 deletions
|
@ -212,11 +212,13 @@ class Planet(QMainWindow):
|
|||
self.distancebox.setCurrentText(self.conf["render_distance"])
|
||||
|
||||
for feature in self.features:
|
||||
if self.conf["options"][feature]:
|
||||
self.features[feature].setCheckState(Qt.Checked)
|
||||
else:
|
||||
self.features[feature].setCheckState(Qt.Unchecked)
|
||||
|
||||
try:
|
||||
if self.conf["options"][feature]:
|
||||
self.features[feature].setCheckState(Qt.Checked)
|
||||
else:
|
||||
self.features[feature].setCheckState(Qt.Unchecked)
|
||||
except KeyError:
|
||||
pass
|
||||
self.showlauncher.setChecked(self.conf["hidelauncher"])
|
||||
|
||||
self.set_features()
|
||||
|
@ -403,7 +405,6 @@ class Planet(QMainWindow):
|
|||
|
||||
return web
|
||||
|
||||
|
||||
def mousePressEvent(self, event):
|
||||
if event.button() == Qt.LeftButton:
|
||||
self.moveFlag = True
|
||||
|
|
Loading…
Reference in a new issue