Skip to content

Load web URL for newly added spaces - #1267

Merged
fracturehill merged 2 commits into
mainfrom
work/fixweburl
Nov 19, 2026
Merged

fracturehill merged 2 commits into
mainfrom
work/fixweburl

Conversation

@fracturehill

@fracturehill fracturehill commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Whenever a new space has been added to the ones we're syncing, its web URL property would be empty, leading to the "Copy URL to clipboard" context menu option to not work. This was because the URL was being set in a signal handler for
Account::capabilitiesChanged, which fires when first connecting to the account, but not after.

Also adds a UI fix to hide the "Show in web browser" and "Copy URL to clipboard" context menu options when the web URL is empty.

Fixes #1263

Comment thread src/gui/folder.cpp

connect(_accountState.data(), &AccountState::isConnectedChanged, this, &Folder::canSyncChanged);

auto *context = new QObject(this);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use a lamda, pass it to the connect and call it once

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Not quite sure about the single shot connection though; are we guaranteed that at startup, we'll only get one capabilitiesChanged signal, and it will be the one that adds privateLinkPropertyAvailable? The previous design assumes that (and so does the current version of this PR), but I don't know if there's an edge case where it might fail.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-done, we now don't disconnect from the signal in case the capabilities ever change again at runtime

@fracturehill
fracturehill force-pushed the work/fixweburl branch 2 times, most recently from c52b3db to b22d5b6 Compare November 19, 2026 11:37
Whenever a new space has been added to the ones we're syncing,
its web URL property would be empty, leading to the "Copy URL
to clipboard" context menu option to not work. This was because
the URL was being set in a signal handler for
Account::capabilitiesChanged, which fires when first connecting
to the account, but not after.

@TheOneRing TheOneRing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

The "Show in web browser" and "Copy URL to clipboard" context
menu options are useless when the web URL has a length of 0. Hide them
in those cases.
@fracturehill
fracturehill enabled auto-merge (rebase) November 19, 2026 12:36
@fracturehill
fracturehill merged commit e368cb2 into main Nov 19, 2026
10 of 14 checks passed
@fracturehill
fracturehill deleted the work/fixweburl branch November 19, 2026 12:49
@openclouders openclouders mentioned this pull request Nov 19, 2026
1 task
@saw-jan saw-jan mentioned this pull request Nov 25, 2026
9 of 22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New "shift click action" "Copy Url to clipboard unreliable or broken

2 participants