-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add Remove link context menu entry in file editor #2972
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this PR look good to me, but please don't forget #2939 (comment) which in light of these changes is even more significant.
@@ -146,11 +146,15 @@ private ContextMenu createContextMenuForFile(LinkedFileViewModel linkedFile) { | |||
deleteFile.setOnAction(event -> viewModel.deleteFile(linkedFile)); | |||
deleteFile.setDisable(linkedFile.getFile().isOnlineLink()); | |||
|
|||
MenuItem deleteLink = new MenuItem(Localization.lang("Remove link")); | |||
deleteLink.setOnAction(event -> viewModel.removeFileLink(linkedFile)); | |||
deleteLink.setDisable(linkedFile.getFile().isOnlineLink()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it also makes sense to enable it for online links.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* upstream/master: Eclipse J Add switch indentation for Eclipse and add some new missing formatting options Check for different editions in the duplicate check (#2991) Add CheckStyle Check for Constants (final static) (#2992) Add Remove link context menu entry in file editor (#2972) Fix DiVA tests Remove <pre> tag from entries fetched using MathSciNet (#2990) Fix Brazilian Portugese language loading (#2981) Use sftp's symlink command to provide symlink to latest version Update gradle from 4.0 to 4.0.1 Fix group storage (#2978) Fix keybindings in entry editor (#2971)
Fix for #2968
gradle localizationUpdate
?