Commit 9ab655a8 authored by Marc Duez's avatar Marc Duez

fuse.py : change filter again

parent 3b3d0d53
......@@ -300,12 +300,14 @@ class ListWindows:
r = []
reverseList = {}
for w in self.d["windows"] :
reverseList[w.d["window"]] = w
for i,w in enumerate(self.d["windows"]) :
reverseList[w.d["window"]] = i
#filteredList = { k: reverseList[k] for k in f }
filteredList = dict(filter(lambda t: t[0] in f, reverseList.items()))
for i in f:
if i in reverseList.keys():
r.append(reverseList[i])
for i in filteredList:
r.append(self.d["windows"][filteredList[i]])
self.d["windows"] = r
......
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