Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
payloads floder properly initializes
reduced length of "too short" message in serial checker
settingspage now clearly states one of the functions of the autoupdaterepobox
  • Loading branch information
Andrew committed Jun 5, 2019
1 parent 215769c commit ca22e7b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions pages/injectorpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion pages/serialpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pages/settingspage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
8 changes: 3 additions & 5 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ Difficulty / Time:
[HRNNN]
todo:

mustdo:
fix payloads folder to only initialize when needed

Priority:
High:
settings:
Expand All @@ -29,7 +26,6 @@ Priority:

Low:
file structure:
subfolder
clean up imports
make entrybox a subclass of searchbox

Expand All @@ -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:
Expand Down

0 comments on commit ca22e7b

Please sign in to comment.