files-community / Files

A modern file manager that helps users organize their files and folders.
https://files.community
MIT License
34.78k stars 2.21k forks source link

Feature: Auto refresh drive widget & tags widget when changes are detected #6182

Open m1karii opened 3 years ago

m1karii commented 3 years ago

1, Enable reload button on The Home page as a way to update displayed capacity and used space of drives (so i don't have to close and reopen whole Files app or go to drive properties every time i want it updated)

  1. displayed capacity and used space of drives should be automatically updated when The Home page is entered (on new tab for e.g.)
yaira2 commented 3 years ago

@gave92 shouldn't we use the file watcher to automatically update the home page without requiring a refresh?

mon-jai commented 10 months ago

Coming from #14334.

Closing all windows and reopening files doesn't fix the problem.

image

Josh65-2201 commented 10 months ago

Please don't copy and paste the log file contents. It makes issue hard to read and navigate.

yaira2 commented 10 months ago

Closing all windows and reopening files doesn't fix the problem.

What if you close Files via Task Manager? Just to clarify, this isn't the expected behavior but it'll confirm if it's the same issue.

mon-jai commented 10 months ago

Please don't copy and paste the log file contents. It makes issue hard to read and navigate.

Sorry for that.

What if you close Files via Task Manager? Just to clarify, this isn't the expected behavior but it'll confirm if it's the same issue.

@yaira2 Surprisingly, it does fix the problem (for a moment), but the stats still doesn't update until next time I do the same.

yaira2 commented 10 months ago

The issue is due to the lack of a "watcher" to update the UI when the storage capacity changes.

0x5bfa commented 2 months ago

Making this line work would fix this issue.

https://github.com/files-community/Files/blob/af07aa37b62c8f4bc0ceda362b092921f3456cb9/src/Files.App/Views/HomePage.xaml.cs#L89

Also this would work as a workaround for #15410 instead of turning off the option to run the app on the background.

I'll leave this for a few days, if no one is interested in I'll look into 👍 I decided to work on this after quick access and drives widgets refactoring, if no one is interested in.

yaira2 commented 2 months ago

Thank you