Expert mode tweaks

This commit is contained in:
Paweł Jastrzębski
2013-06-19 12:36:09 +02:00
parent fdc265eaea
commit f8f362fc10
6 changed files with 12 additions and 28 deletions
+3 -3
View File
@@ -312,8 +312,8 @@ class Ui_KCC(object):
self.GammaValue = value
GUI.GammaLabel.setText('Gamma: ' + str(value))
def changeDevice(self, value):
if value == 11 and self.currentMode != 3:
def changeDevice(self, value, start=False):
if value == 11 and (start or self.currentMode != 3):
GUI.BasicModeButton.setEnabled(False)
GUI.AdvModeButton.setEnabled(False)
self.modeExpert()
@@ -442,4 +442,4 @@ class Ui_KCC(object):
self.modeExpert()
self.versionCheck.start()
self.hideProgressBar()
self.changeDevice(self.lastDevice)
self.changeDevice(self.lastDevice, True)