mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FileHistoryPanelImpl: disable "Get" for directories, since it doesn't work for any VCS anyway.
Relates to IDEA-53116
This commit is contained in:
@@ -946,9 +946,7 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton {
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
if (!super.isEnabled()) return false;
|
||||
if (!myHistorySession.isContentAvailable(getFirstSelectedRevision())) return false;
|
||||
return true;
|
||||
return super.isEnabled() && myHistorySession.isContentAvailable(getFirstSelectedRevision()) && !myFilePath.isDirectory();
|
||||
}
|
||||
|
||||
protected void executeAction(AnActionEvent e) {
|
||||
|
||||
Reference in New Issue
Block a user