mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-19 10:05:03 +01:00
fix(gui,fuse,core): fill in thumbnails without reopening the folder
Build thumbnails cancelled the requests of the tiles on screen, and those tiles stayed blank until the folder was opened again, or the whole recursive build ended. The daemon now publishes a new Topic::Thumbnails whenever a batch made at least one thumbnail. The app keeps the tiles still showing their icon across a cancel, and asks for them again on that event, whatever page is open. Older front-ends read the topic as Unknown, and older daemons never send it.
This commit is contained in:
1 parent
2308021aa2
commit
3f5001b2d2
5 files changed
+143
-7
No files matched your search
@@ -1910,6 +1910,11 @@ impl Core {
|
||||
ThumbAttempt::Cancelled => summary.cancelled += 1,
|
||||
}
|
||||
}
|
||||
// A folder on screen whose tiles were given up on, as a recursive
|
||||
// build's start does to them, fills in without being opened again.
|
||||
if summary.made > 0 {
|
||||
self.events.publish(&[Topic::Thumbnails]);
|
||||
}
|
||||
summary
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user