Permalink
Browse files

corrected automatic updating

  • Loading branch information...
1 parent 0d26dc4 commit 3da6e24b8dc11f8d8f38bceff763fee2e2f13729 @bahniks committed Aug 5, 2014
Showing with 6 additions and 3 deletions.
  1. +6 −3 CM Manager.py
View
@@ -44,7 +44,7 @@ def checkNewVersion(version):
try:
from optionget import optionGet
from version import version as currentVersion
- versionSeen = optionGet("DontShowVersion", currentVersion(), "list")
+ versionSeen = optionGet("DontShowVersion", currentVersion(), "list", True)
except Exception:
versionSeen = version
for i in range(3):
@@ -76,13 +76,16 @@ def checkNewVersion(version):
root.config(cursor = "")
else:
try:
+ print(newVersion)
from optionwrite import optionWrite
- optionWrite("DontShowVersion", newVersion)
+ optionWrite("DontShowVersion", newVersion, True)
except Exception:
pass
root.destroy()
break
-
+ elif int(newVersion[i]) < int(versionSeen[i]):
+ break
+
def download(version):
"downloads the version from github"

0 comments on commit 3da6e24

Please sign in to comment.