Sorting
This commit is contained in:
parent
f801ef1915
commit
497034c8fe
1 changed files with 2 additions and 0 deletions
|
@ -79,6 +79,7 @@ class PassUi(wx.Frame):
|
||||||
for mfile in os.listdir(self.curdir):
|
for mfile in os.listdir(self.curdir):
|
||||||
if mfile.endswith(".gpg"): # and os.path.isfile(mfile):
|
if mfile.endswith(".gpg"): # and os.path.isfile(mfile):
|
||||||
passwords.append(os.path.join(self.curdir, mfile))
|
passwords.append(os.path.join(self.curdir, mfile))
|
||||||
|
passwords = sorted(passwords)
|
||||||
return passwords
|
return passwords
|
||||||
|
|
||||||
def get_pass_paths(self):
|
def get_pass_paths(self):
|
||||||
|
@ -89,6 +90,7 @@ class PassUi(wx.Frame):
|
||||||
if os.path.isdir(os.path.join(self.curdir,
|
if os.path.isdir(os.path.join(self.curdir,
|
||||||
cdir)) and cdir != ".git":
|
cdir)) and cdir != ".git":
|
||||||
dirs.append(os.path.join(self.curdir, cdir))
|
dirs.append(os.path.join(self.curdir, cdir))
|
||||||
|
dirs = sorted(dirs)
|
||||||
return dirs
|
return dirs
|
||||||
|
|
||||||
def password_button_clicked(self, event, index):
|
def password_button_clicked(self, event, index):
|
||||||
|
|
Loading…
Add table
Reference in a new issue