Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
m1karii opened this issue Sep 19, 2021 · 8 comments
Open
Labels
area - network drives Features or bug reports relating to network drives help wanted Extra attention is needed

Comments

@m1karii
Copy link

m1karii commented Sep 19, 2021

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)
2. displayed capacity and used space of drives should be automatically updated when The Home page is entered (on new tab for e.g.)

@yaira2
Copy link
Member

yaira2 commented Sep 20, 2021

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

@yaira2 yaira2 removed the enhancement label Oct 7, 2021
@yaira2 yaira2 changed the title Feature request: Enable reload button on The Home page & automatically update displayed taken space of drives upon entering The Home page Auto refresh home page when drive changes are detected Oct 7, 2021
@Josh65-2201 Josh65-2201 moved this to 🆕 New in Files task board Sep 8, 2022
@yaira2 yaira2 changed the title Auto refresh home page when drive changes are detected Feature: Auto refresh drive widget whenchanges are detected Feb 3, 2023
@yaira2 yaira2 changed the title Feature: Auto refresh drive widget whenchanges are detected Feature: Auto refresh drive widget when changes are detected Feb 3, 2023
@yaira2 yaira2 moved this from 🆕 New to 🔖 Ready to build in Files task board Feb 13, 2023
@yaira2 yaira2 added the help wanted Extra attention is needed label Nov 13, 2023
@files-community files-community deleted a comment from gave92 Dec 14, 2023
@mon-jai
Copy link

mon-jai commented Jan 6, 2024

Coming from #14334.

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

image

@Josh65-2201
Copy link
Member

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

@yaira2
Copy link
Member

yaira2 commented Jan 7, 2024

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
Copy link

mon-jai commented Jan 7, 2024

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
Copy link
Member

yaira2 commented Jan 8, 2024

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

@yaira2 yaira2 changed the title Feature: Auto refresh drive widget when changes are detected Feature: Auto refresh drive widget & tags widget when changes are detected May 10, 2024
@yaira2 yaira2 pinned this issue May 10, 2024
@yaira2 yaira2 added the area - network drives Features or bug reports relating to network drives label Jun 19, 2024
@0x5bfa
Copy link
Member

0x5bfa commented Sep 17, 2024

Making this line work would fix this issue.

await Task.WhenAll(ViewModel.WidgetItems.Select(w => w.WidgetItemModel.RefreshWidgetAsync()));

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
Copy link
Member

yaira2 commented Sep 17, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area - network drives Features or bug reports relating to network drives help wanted Extra attention is needed
Projects
Status: 🔖 Ready to build
Development

No branches or pull requests

6 participants