summaryrefslogtreecommitdiff
path: root/plugins/github/src/org/jetbrains/plugins/github/util/GithubSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/github/src/org/jetbrains/plugins/github/util/GithubSettings.java')
-rw-r--r--plugins/github/src/org/jetbrains/plugins/github/util/GithubSettings.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/github/src/org/jetbrains/plugins/github/util/GithubSettings.java b/plugins/github/src/org/jetbrains/plugins/github/util/GithubSettings.java
index 3523e412a95e..7e98d47d8220 100644
--- a/plugins/github/src/org/jetbrains/plugins/github/util/GithubSettings.java
+++ b/plugins/github/src/org/jetbrains/plugins/github/util/GithubSettings.java
@@ -22,6 +22,7 @@ import com.intellij.ide.passwordSafe.impl.PasswordSafeImpl;
import com.intellij.openapi.components.*;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.text.StringUtil;
+import com.intellij.util.ThreeState;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.plugins.github.api.GithubApiUtil;
@@ -60,6 +61,7 @@ public class GithubSettings implements PersistentStateComponent<GithubSettings.S
public boolean SAVE_PASSWORD = true;
public int CONNECTION_TIMEOUT = 5000;
public boolean VALID_GIT_AUTH = true;
+ public ThreeState CREATE_PULL_REQUEST_CREATE_REMOTE = ThreeState.UNSURE;
}
public static GithubSettings getInstance() {
@@ -130,6 +132,15 @@ public class GithubSettings implements PersistentStateComponent<GithubSettings.S
return passwordSafe.getSettings().getProviderType() == PasswordSafeSettings.ProviderType.MASTER_PASSWORD;
}
+ @NotNull
+ public ThreeState getCreatePullRequestCreateRemote() {
+ return myState.CREATE_PULL_REQUEST_CREATE_REMOTE;
+ }
+
+ public void setCreatePullRequestCreateRemote(@NotNull ThreeState value) {
+ myState.CREATE_PULL_REQUEST_CREATE_REMOTE = value;
+ }
+
public void setAnonymousGist(final boolean anonymousGist) {
myState.ANONYMOUS_GIST = anonymousGist;
}