From ca22e7b703a3dc53e5e5afb7b0853cd4fcf12c0f Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 4 Jun 2019 21:12:19 -0700 Subject: [PATCH] tweaks payloads floder properly initializes reduced length of "too short" message in serial checker settingspage now clearly states one of the functions of the autoupdaterepobox --- pages/injectorpage.py | 3 +++ pages/serialpage.py | 2 +- pages/settingspage.py | 2 +- todo.md | 8 +++----- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pages/injectorpage.py b/pages/injectorpage.py index 2dddd80..a3580a0 100644 --- a/pages/injectorpage.py +++ b/pages/injectorpage.py @@ -110,6 +110,9 @@ def checkpayloadversion(self,group,softwarename): return version def getordownloadpayload(self): + if not os.path.isdir(locations.ssncfolder): + os.mkdir(locations.ssncfolder) + print("initializing ssnc folder") with open(self.softwarelist[self.currentselection]["githubjson"]) as json_file: #jsonfile is path, json_file is file obj jfile = json.load(json_file) softwarename = self.softwarelist[self.currentselection]["software"] diff --git a/pages/serialpage.py b/pages/serialpage.py index 1da5416..6e4cc98 100644 --- a/pages/serialpage.py +++ b/pages/serialpage.py @@ -62,7 +62,7 @@ def back(self): self.back_command() def checkserial(serial): - if len(serial) < 10: + if len(serial) < 5: status = "Too short" return status diff --git a/pages/settingspage.py b/pages/settingspage.py index ecbb423..e072b10 100644 --- a/pages/settingspage.py +++ b/pages/settingspage.py @@ -41,7 +41,7 @@ def __init__(self, parent, controller,back_command): self.settingslabel = cw.columnlabel(self.settingsframe,"SETTINGS",anchor="center",background=light_color) self.settingslabel.place(relx=0.5,width=5*navbuttonheight,x=-2.5*navbuttonheight,y=spaceincrementer*navbuttonheight) - self.autoupdaterepossettingbox = cw.settingbox(self.settingsframe,"Automatically update repo information on launch") + self.autoupdaterepossettingbox = cw.settingbox(self.settingsframe,"Automatically update repo information on launch\n(leads to faster launch time and less bandwidth)") self.settingboxlist.append(self.autoupdaterepossettingbox) self.alerttoupdatebox = cw.settingbox(self.settingsframe,"Check for updates to HBUpdater") diff --git a/todo.md b/todo.md index 99431a3..cd907b3 100644 --- a/todo.md +++ b/todo.md @@ -7,9 +7,6 @@ Difficulty / Time: [HRNNN] todo: -mustdo: -fix payloads folder to only initialize when needed - Priority: High: settings: @@ -29,7 +26,6 @@ Priority: Low: file structure: - subfolder clean up imports make entrybox a subclass of searchbox @@ -43,7 +39,9 @@ Priority: Serial Number checker https://github.com/AkdM/ssncpy - + +totest: +fluffy and nut error page handling (when not rate limited) todone: 0.8: