mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-25 18:05:39 +00:00
Rework
This commit is contained in:
@@ -22,7 +22,7 @@ public class StoreCategoryIconComp extends SimpleRegionBuilder {
|
||||
protected Region createSimple() {
|
||||
var imageComp = PrettyImageHelper.ofFixedSize(wrapper.getIconFile(), size, size);
|
||||
var storeIcon = imageComp.build();
|
||||
storeIcon.setPadding(new Insets(0, 0, 1, 0));
|
||||
storeIcon.setPadding(new Insets(0, 0, 1.5, 0));
|
||||
|
||||
var dots = new FontIcon("mdi2d-dots-horizontal");
|
||||
dots.setIconSize((int) (size * 1.1));
|
||||
|
||||
@@ -130,7 +130,7 @@ public class OnePasswordManager implements PasswordManager {
|
||||
availableAccounts.clear();
|
||||
availableAccounts.putAll(accounts);
|
||||
if (availableAccounts.isEmpty()) {
|
||||
throw ErrorEventFactory.expected(new IllegalStateException("No accounts are registered to the 1password CLI"));
|
||||
return null;
|
||||
}
|
||||
return availableAccounts.entrySet().iterator().next().getValue();
|
||||
}
|
||||
@@ -176,12 +176,15 @@ public class OnePasswordManager implements PasswordManager {
|
||||
}
|
||||
|
||||
try {
|
||||
var account = getActiveAccount();
|
||||
var b = CommandBuilder.of()
|
||||
.add("op", "item", "get")
|
||||
.addLiteral(name)
|
||||
.add("--account").addLiteral(account)
|
||||
.add("--format", "json");
|
||||
.addLiteral(name);
|
||||
var account = getActiveAccount();
|
||||
if (account != null) {
|
||||
b .add("--account")
|
||||
.addLiteral(account);
|
||||
}
|
||||
b.add("--format", "json");
|
||||
if (vault != null) {
|
||||
b.add("--vault").addLiteral(vault);
|
||||
}
|
||||
|
||||
Generated
+4
-2
@@ -1602,9 +1602,11 @@ actionApiUrl=$URL$ (Copy json body)
|
||||
copyBody=Copy request body
|
||||
gitRepoTerminalOpen=Open repository in terminal
|
||||
gitRepoTerminalOpenDescription=Take a look at the repository yourself with the command-line
|
||||
gitRepoOverwriteLocal=Overwrite local repository
|
||||
#force
|
||||
gitRepoOverwriteLocal=Overwrite local changes
|
||||
gitRepoOverwriteLocalDescription=Replace all local changes with changes from the remote
|
||||
gitRepoForcePush=Overwrite remote repository
|
||||
#force
|
||||
gitRepoForcePush=Overwrite remote changes
|
||||
gitRepoForcePushDescription=Use git push --force to apply your local changes to the remote
|
||||
gitRepoDontWarn=Don't warn anymore
|
||||
gitRepoDontWarnDescription=If this is expected, make XPipe ignore this error in the future
|
||||
|
||||
Reference in New Issue
Block a user