Skip to content

Comments

[DC-227] implement the error items in the account folders view#12463

Merged
modSpike merged 8 commits intomasterfrom
refactor/dc-227
Feb 19, 2026
Merged

[DC-227] implement the error items in the account folders view#12463
modSpike merged 8 commits intomasterfrom
refactor/dc-227

Conversation

@modSpike
Copy link
Contributor

Just to start, the error items are as simple as possible.

Also adjusted the constructor for the folder item updater to not take a parent because the folder item manages the lifetime of the updater.

also changed some blocks to use {} at Erik's request
@update-docs
Copy link

update-docs bot commented Feb 10, 2026

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

this is just a passthrough to the accountState::isConnected but it's important to remove dependencies on account state. At base a folder should "know" if it is connected or not, regardless of how that is determined.
incorporated the folder connection state into menu actions states

updated text for sync state: NotYetStarted

"slow down" the progress updates as by default they are very granular. Now update limited to every 1 second
the folderitemdelegate now takes care of painting both the folder delegate and error items

had to fool around to get the expander to show for the error items

also fixed paints for the folder icon based on different possible non-square geometries (vertical/tall or horizontal/wide).

with the current impl the folder icons do indeed get updated after changing them on the server, which is great because there was some trouble with that in the qml impl and never figured out why.
tested with phony "long error" to implement multiline error text.

lots of comments to explain why it's not very straightforward in various places

I will come back with fresh eyes to try to simplify/improve readability of the impl.
updated the button so it uses the same style as default buttons. IE don't set a style for the font size and let it be "small"
@modSpike modSpike requested a review from erikjv February 19, 2026 13:09
@modSpike modSpike merged commit e0b6cf5 into master Feb 19, 2026
10 of 11 checks passed
@modSpike modSpike deleted the refactor/dc-227 branch February 19, 2026 15:45
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

Successfully merging this pull request may close these issues.

2 participants