mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-22 16:35:35 +00:00
Small fixes
This commit is contained in:
@@ -215,7 +215,7 @@ public class StoreCreationDialog {
|
||||
modal.addButton(new ModalButton(
|
||||
"skip",
|
||||
() -> {
|
||||
if (showInvalidConfirmAlert()) {
|
||||
if (!model.wasChanged() || showInvalidConfirmAlert()) {
|
||||
model.commit(false);
|
||||
modal.close();
|
||||
} else {
|
||||
|
||||
@@ -189,6 +189,14 @@ public class StoreCreationModel {
|
||||
return !eq;
|
||||
}
|
||||
|
||||
boolean wasChanged() {
|
||||
if (existingEntry != null && existingEntry.getStore().equals(store.getValue())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void finish() {
|
||||
if (finished.get()) {
|
||||
return;
|
||||
@@ -211,7 +219,7 @@ public class StoreCreationModel {
|
||||
}
|
||||
|
||||
// We didn't change anything
|
||||
if (existingEntry != null && existingEntry.getStore().equals(store.getValue())) {
|
||||
if (!wasChanged()) {
|
||||
commit(false);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@ public interface SshIdentityStrategy {
|
||||
var l = new ArrayList<Class<?>>();
|
||||
l.add(NoneStrategy.class);
|
||||
l.add(KeyFileStrategy.class);
|
||||
l.add(OpenSshAgentStrategy.class);
|
||||
if (OsType.getLocal() != OsType.WINDOWS) {
|
||||
l.add(CustomAgentStrategy.class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user