|
@ -28,6 +28,7 @@ import com.sparrowwallet.sparrow.net.ServerType; |
|
|
import com.sparrowwallet.sparrow.preferences.PreferenceGroup; |
|
|
import com.sparrowwallet.sparrow.preferences.PreferenceGroup; |
|
|
import com.sparrowwallet.sparrow.preferences.PreferencesDialog; |
|
|
import com.sparrowwallet.sparrow.preferences.PreferencesDialog; |
|
|
import com.sparrowwallet.sparrow.soroban.CounterpartyDialog; |
|
|
import com.sparrowwallet.sparrow.soroban.CounterpartyDialog; |
|
|
|
|
|
import com.sparrowwallet.sparrow.soroban.PayNymDialog; |
|
|
import com.sparrowwallet.sparrow.soroban.Soroban; |
|
|
import com.sparrowwallet.sparrow.soroban.Soroban; |
|
|
import com.sparrowwallet.sparrow.soroban.SorobanServices; |
|
|
import com.sparrowwallet.sparrow.soroban.SorobanServices; |
|
|
import com.sparrowwallet.sparrow.transaction.TransactionController; |
|
|
import com.sparrowwallet.sparrow.transaction.TransactionController; |
|
@ -163,6 +164,9 @@ public class AppController implements Initializable { |
|
|
@FXML |
|
|
@FXML |
|
|
private MenuItem findMixingPartner; |
|
|
private MenuItem findMixingPartner; |
|
|
|
|
|
|
|
|
|
|
|
@FXML |
|
|
|
|
|
private MenuItem showPayNym; |
|
|
|
|
|
|
|
|
@FXML |
|
|
@FXML |
|
|
private CheckMenuItem preventSleep; |
|
|
private CheckMenuItem preventSleep; |
|
|
private static final BooleanProperty preventSleepProperty = new SimpleBooleanProperty(); |
|
|
private static final BooleanProperty preventSleepProperty = new SimpleBooleanProperty(); |
|
@ -329,6 +333,7 @@ public class AppController implements Initializable { |
|
|
lockWallet.setDisable(true); |
|
|
lockWallet.setDisable(true); |
|
|
refreshWallet.disableProperty().bind(Bindings.or(exportWallet.disableProperty(), Bindings.or(serverToggle.disableProperty(), AppServices.onlineProperty().not()))); |
|
|
refreshWallet.disableProperty().bind(Bindings.or(exportWallet.disableProperty(), Bindings.or(serverToggle.disableProperty(), AppServices.onlineProperty().not()))); |
|
|
sendToMany.disableProperty().bind(exportWallet.disableProperty()); |
|
|
sendToMany.disableProperty().bind(exportWallet.disableProperty()); |
|
|
|
|
|
showPayNym.disableProperty().bind(findMixingPartner.disableProperty()); |
|
|
findMixingPartner.setDisable(true); |
|
|
findMixingPartner.setDisable(true); |
|
|
AppServices.onlineProperty().addListener((observable, oldValue, newValue) -> { |
|
|
AppServices.onlineProperty().addListener((observable, oldValue, newValue) -> { |
|
|
findMixingPartner.setDisable(exportWallet.isDisable() || getSelectedWalletForm() == null || !SorobanServices.canWalletMix(getSelectedWalletForm().getWallet()) || !newValue); |
|
|
findMixingPartner.setDisable(exportWallet.isDisable() || getSelectedWalletForm() == null || !SorobanServices.canWalletMix(getSelectedWalletForm().getWallet()) || !newValue); |
|
@ -1289,6 +1294,14 @@ public class AppController implements Initializable { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void showPayNym(ActionEvent event) { |
|
|
|
|
|
WalletForm selectedWalletForm = getSelectedWalletForm(); |
|
|
|
|
|
if(selectedWalletForm != null) { |
|
|
|
|
|
PayNymDialog payNymDialog = new PayNymDialog(selectedWalletForm.getWalletId(), false); |
|
|
|
|
|
payNymDialog.showAndWait(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public void minimizeToTray(ActionEvent event) { |
|
|
public void minimizeToTray(ActionEvent event) { |
|
|
AppServices.get().minimizeStage((Stage)tabs.getScene().getWindow()); |
|
|
AppServices.get().minimizeStage((Stage)tabs.getScene().getWindow()); |
|
|
} |
|
|
} |
|
|