Skip to content

Commit

Permalink
bumps version and adresses slow operation on EDT
Browse files Browse the repository at this point in the history
  • Loading branch information
chedim committed May 28, 2024
1 parent 3ea707f commit 1b76d77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "com.couchbase"
version = "1.1.1"
version = "1.1.2"
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,11 @@ public String getApiKey() {
}

public void setApiKey(String apiKey) {
var credentialAttributes = createCredentialAttributes(getModelPage());
PasswordSafe.getInstance().setPassword(credentialAttributes, apiKey);
setApiKeyMasked(maskText(apiKey));
ApplicationManager.getApplication().executeOnPooledThread(() -> {
var credentialAttributes = createCredentialAttributes(getModelPage());
PasswordSafe.getInstance().setPassword(credentialAttributes, apiKey);
setApiKeyMasked(maskText(apiKey));
});
}

private static String maskText(String text) {
Expand Down

0 comments on commit 1b76d77

Please sign in to comment.