mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GithubRebaseAction: don't call Git in update()
This commit is contained in:
@@ -56,8 +56,7 @@ public class GithubRebaseAction extends DumbAwareAction {
|
||||
public void update(AnActionEvent e) {
|
||||
final Project project = e.getData(PlatformDataKeys.PROJECT);
|
||||
if (StringUtil.isEmptyOrSpaces(GithubSettings.getInstance().getLogin()) ||
|
||||
project == null || project.isDefault() ||
|
||||
GithubUtil.getGithubBoundRepository(project) == null) {
|
||||
project == null || project.isDefault()) {
|
||||
e.getPresentation().setEnabled(false);
|
||||
e.getPresentation().setVisible(false);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user