|
|
@@ -65,6 +65,22 @@ def desktop_displaySelectedTile(p): |
|
|
|
#} |
|
|
|
#} |
|
|
|
|
|
|
|
# Hide matching tiles |
|
|
|
# |
|
|
|
# Conditions: |
|
|
|
# 1. Time to hide matching items |
|
|
|
def desktop_hideMatchingTiles(p): |
|
|
|
print(f"desktop_hideMT recentF: '{p.c.recentField}'") |
|
|
|
if ( |
|
|
|
p.c.recentField == "hideMatchingTiles" |
|
|
|
): |
|
|
|
for id in p.c.hiddenItems: |
|
|
|
p.deselectedTiles[id].visible = False |
|
|
|
p.selectedTiles[id].visible = False |
|
|
|
#} |
|
|
|
#} |
|
|
|
#} |
|
|
|
|
|
|
|
# Postpone hiding of matching tiles for better UX |
|
|
|
# |
|
|
|
# Conditions: |
|
|
@@ -73,22 +89,6 @@ def desktop_scheduleHidingOfMatchingTiles(p): |
|
|
|
if ( |
|
|
|
p.c.recentField == "hiddenItems" |
|
|
|
): |
|
|
|
p.sequentialTimer.schedule("hideMatchingTiles", True, 500) |
|
|
|
p.sequentialTimer.schedule("hideMatchingTiles", True, p.c.hideMatchingTilesDelay) |
|
|
|
#} |
|
|
|
#} |
|
|
|
|
|
|
|
# Hide matching tiles |
|
|
|
# TODO: Rearrange the position of the func |
|
|
|
# |
|
|
|
# Conditions: |
|
|
|
# 1. ... |
|
|
|
#def desktop_hideMatchingTiles(p): |
|
|
|
# if ( |
|
|
|
# p.c.recentField == "hiddenItems" |
|
|
|
# ): |
|
|
|
# for id in p.c.hiddenItems: |
|
|
|
# p.deselectedTiles[id].visible = False |
|
|
|
# p.selectedTiles[id].visible = False |
|
|
|
# #} |
|
|
|
# #} |
|
|
|
##} |