Commit 9f9b8d05 authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup pronsole.py loading & some SD stuff

parent 1dfb0cd6
This diff is collapsed.
...@@ -1150,7 +1150,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1150,7 +1150,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
for listener in self.recvlisteners: for listener in self.recvlisteners:
listener(l) listener(l)
def listfiles(self, line): def listfiles(self, line, ignored = False):
if "Begin file list" in line: if "Begin file list" in line:
self.listing = 1 self.listing = 1
elif "End file list" in line: elif "End file list" in line:
...@@ -1158,7 +1158,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1158,7 +1158,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self.recvlisteners.remove(self.listfiles) self.recvlisteners.remove(self.listfiles)
wx.CallAfter(self.filesloaded) wx.CallAfter(self.filesloaded)
elif self.listing: elif self.listing:
self.sdfiles+=[line.replace("\n", "").replace("\r", "").lower()] self.sdfiles.append(line.strip().lower())
def waitforsdresponse(self, l): def waitforsdresponse(self, l):
if "file.open failed" in l: if "file.open failed" in l:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment