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

Show file transfer timestamps in GUI #97

Open
bpozdena opened this issue Apr 5, 2023 · 4 comments
Open

Show file transfer timestamps in GUI #97

bpozdena opened this issue Apr 5, 2023 · 4 comments

Comments

@bpozdena
Copy link
Owner

bpozdena commented Apr 5, 2023

          > We would probably also have to show the time when the event happened, which would need completely new layout, etc.

@bpozdena Funnily enough, I was working on just that earlier today, right after I opened that issue 😅 - There was space to the right of the file name, which I think is perfect for a timestamp.

I tried to turn it into a "5 minutes ago" / "2 hours ago" / "Just now" timestamp, but it would require updating the widgets' text as you scroll through them, but it would require a way to fire some kind of event as a given TaskList widget becomes visible as you scroll (i.e., updating its timestamp once it appears again in the list), and I couldn't find a way to do that.
screenshot

Originally posted by @JL102 in #96 (comment)

@bpozdena
Copy link
Owner Author

bpozdena commented Apr 5, 2023

@JL102 , I've created a separate issue for this.

I'm not able to work on this now, but in theory you would need to update the X minutes/hours/days ago timestamp periodically about once a minute via QTimer. The timestamps should also update when user scrolls the list, which should technically be doable via the valueChanged() signal

So maybe something like this would work?

self.profile_status_pages[profile].listWidget.verticalScrollBar().valueChanged.connect(<< update_timestamps >>)

To minimize CPU utilization in case there are thousands of list items, the << update_timestamps >> function should update the visible list items only (and maybe +-50 more as a scroll buffer) . Or maybe just update certain percentage of the list items based on verticalScrollBar().value().

If you get stuck, feel free to share the partial code. I can try to take another look.

@bpozdena
Copy link
Owner Author

bpozdena commented Oct 9, 2023

Also add s small icon next to the timestamp which will indicate if file was downloaded/uploaded/deleted.
ref.: #121

@JL102
Copy link
Contributor

JL102 commented Oct 9, 2023

Howdy! I'm really sorry, but I stopped using OneDrive entirely after all the frustrations I was having with its speed and limitations. When I found out that the OneDrive Linux client had to filter through ALL files due to the API's limitations (since ignored/selectively un-synced files were done client side) I switched over to a self-hosted Nextcloud server. So unfortunately, I don't really have the means (or need) to work on OneDriveGUI. But I hope it continues to go well for you!

@JL102
Copy link
Contributor

JL102 commented Oct 10, 2023

🤦Please excuse me, I didn't notice until now that you wrote this issue in April. Only saw the notification when you updated it 12 hours ago and thought you wrote the original issue on the same day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants