Repository navigation
Load web URL for newly added spaces - #1267
Merged
Merged
Conversation
TheOneRing
requested changes
Nov 19, 2026
|
|
||
| connect(_accountState.data(), &AccountState::isConnectedChanged, this, &Folder::canSyncChanged); | ||
|
|
||
| auto *context = new QObject(this); |
Contributor
There was a problem hiding this comment.
please use a lamda, pass it to the connect and call it once
Contributor
Author
There was a problem hiding this comment.
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.
Contributor
Author
There was a problem hiding this comment.
Re-done, we now don't disconnect from the signal in case the capabilities ever change again at runtime
fracturehill
force-pushed
the
work/fixweburl
branch
2 times, most recently
from
November 19, 2026 11:37
c52b3db to
b22d5b6
Compare
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.
fracturehill
force-pushed
the
work/fixweburl
branch
from
November 19, 2026 11:40
b22d5b6 to
57c80fa
Compare
fracturehill
force-pushed
the
work/fixweburl
branch
from
November 19, 2026 12:19
57c80fa to
d050cda
Compare
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
force-pushed
the
work/fixweburl
branch
from
November 19, 2026 12:24
d050cda to
618be4a
Compare
fracturehill
enabled auto-merge (rebase)
November 19, 2026 12:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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