From 968e73fe388cc5acf0dd0a3b489a8848e4052e71 Mon Sep 17 00:00:00 2001 From: gutosie Date: Thu, 8 Aug 2024 08:45:20 +0300 Subject: [PATCH] Add files via upload --- NeoBoot/files/neoreboot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NeoBoot/files/neoreboot b/NeoBoot/files/neoreboot index f193e1c..5326c63 100644 --- a/NeoBoot/files/neoreboot +++ b/NeoBoot/files/neoreboot @@ -65,6 +65,7 @@ class NBIChoose2(Screen): self.onShow.append(self.updateInfo) def updateInfo(self): + self.list = [] pluginpath = '' + LinkNeoBoot + '' f = open(pluginpath + '/.location', 'r') mypath = f.readline().strip() @@ -98,7 +99,7 @@ class NBIChoose2(Screen): self['lab2'].setText(strview) imageslist = ['Flash'] - for fn in listdir('' + getNeoLocation() + '/ImageBoot'): + for fn in sorted(listdir('' + getNeoLocation() + '/ImageBoot'), key=lambda x: x.lower()): dirfile = '' + getNeoLocation() + '/ImageBoot/' + fn if os_isdir(dirfile): imageslist.append(fn)