mirror of
https://github.com/Leseratte10/acsm-calibre-plugin.git
synced 2024-12-22 17:29:56 +06:00
beta2, stupid bug
This commit is contained in:
parent
eebb523b6b
commit
ed9e6d534a
@ -279,9 +279,10 @@ class ConfigWidget(QWidget):
|
|||||||
|
|
||||||
self.button_link_account.setEnabled(not activated)
|
self.button_link_account.setEnabled(not activated)
|
||||||
self.button_import_activation.setEnabled(not activated)
|
self.button_import_activation.setEnabled(not activated)
|
||||||
|
self.button_import_WinADE.setEnabled(not activated)
|
||||||
self.button_export_key.setEnabled(activated)
|
self.button_export_key.setEnabled(activated)
|
||||||
self.button_export_activation.setEnabled(activated)
|
self.button_export_activation.setEnabled(activated)
|
||||||
self.button_import_WinADE.setEnabled(activated)
|
|
||||||
|
|
||||||
self.resize(self.sizeHint())
|
self.resize(self.sizeHint())
|
||||||
|
|
||||||
@ -315,9 +316,9 @@ class ConfigWidget(QWidget):
|
|||||||
|
|
||||||
self.button_link_account.setEnabled(not activated)
|
self.button_link_account.setEnabled(not activated)
|
||||||
self.button_import_activation.setEnabled(not activated)
|
self.button_import_activation.setEnabled(not activated)
|
||||||
|
self.button_import_MacADE.setEnabled(not activated)
|
||||||
self.button_export_key.setEnabled(activated)
|
self.button_export_key.setEnabled(activated)
|
||||||
self.button_export_activation.setEnabled(activated)
|
self.button_export_activation.setEnabled(activated)
|
||||||
self.button_import_MacADE.setEnabled(activated)
|
|
||||||
|
|
||||||
self.resize(self.sizeHint())
|
self.resize(self.sizeHint())
|
||||||
|
|
||||||
@ -478,7 +479,7 @@ class ConfigWidget(QWidget):
|
|||||||
msg += "Select ADE 2.0.1 if you are unsure\n\n"
|
msg += "Select ADE 2.0.1 if you are unsure\n\n"
|
||||||
msg += "Which ADE version do you want to emulate?"
|
msg += "Which ADE version do you want to emulate?"
|
||||||
|
|
||||||
item, ok = QInputDialog.getItem(self, "Change ADE version", msg, VAR_VER_SUPP_CONFIG_NAMES, 1, False)
|
item, ok = QInputDialog.getItem(self, "Change ADE version", msg, allowed_strings, 1, False)
|
||||||
|
|
||||||
if (not ok):
|
if (not ok):
|
||||||
return
|
return
|
||||||
|
@ -37,7 +37,7 @@ def createDeviceFile(randomSerial: bool, useVersionIndex: int = 0):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
build_id = VAR_VER_BUILD_IDS.index(useVersionIndex)
|
build_id = VAR_VER_BUILD_IDS[useVersionIndex]
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -314,7 +314,7 @@ def buildActivateReq(useVersionIndex: int = 0):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
build_id = VAR_VER_BUILD_IDS.index(useVersionIndex)
|
build_id = VAR_VER_BUILD_IDS[useVersionIndex]
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -384,7 +384,7 @@ def changeDeviceVersion(useVersionIndex: int = 0):
|
|||||||
return False, "Invalid Version index"
|
return False, "Invalid Version index"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
build_id = VAR_VER_BUILD_IDS.index(useVersionIndex)
|
build_id = VAR_VER_BUILD_IDS[useVersionIndex]
|
||||||
except:
|
except:
|
||||||
return False, "Unknown build ID"
|
return False, "Unknown build ID"
|
||||||
|
|
||||||
@ -429,7 +429,7 @@ def activateDevice(useVersionIndex: int = 0):
|
|||||||
return False, "Invalid Version index"
|
return False, "Invalid Version index"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
build_id = VAR_VER_BUILD_IDS.index(useVersionIndex)
|
build_id = VAR_VER_BUILD_IDS[useVersionIndex]
|
||||||
except:
|
except:
|
||||||
return False, "error checking build ID"
|
return False, "error checking build ID"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user