Skip to content

Extend context menu with copy to clipboard - #1115

Merged
TheOneRing merged 1 commit into
mainfrom
work/copy_clipboard
Sep 29, 2026
Merged

TheOneRing merged 1 commit into
mainfrom
work/copy_clipboard

Conversation

@TheOneRing

Copy link
Copy Markdown
Contributor

If a conext menu is opened while shift is pressed advanced options like 'Copy path to clipboard' are added.

@TheOneRing
TheOneRing requested a review from dragotin September 23, 2026 12:13
@TheOneRing
TheOneRing force-pushed the work/copy_clipboard branch 2 times, most recently from e74f1f0 to 6c63067 Compare September 28, 2026 14:03
If a conext menu is opened while shift is pressed advanced options like 'Copy path to clipboard' are added.
// keep in sync with ActivityWidget::slotItemContextMenu
auto showInFileBrowserAction = menu->addAction(CommonStrings::showInFileBrowser(), parent, [localPath] {
// Double-check if the file still exists
if (QFileInfo::exists(localPath)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if (QFileInfo::exists(localPath)) {
if (fileExists) {

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.

we are in a lambda and have to check whether the file still exists when the action was triggered.

@TheOneRing
TheOneRing merged commit 26a0769 into main Sep 29, 2026
14 of 15 checks passed
@TheOneRing
TheOneRing deleted the work/copy_clipboard branch September 29, 2026 14:27
@openclouders openclouders mentioned this pull request Sep 29, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants