Skip to content

Commit

Permalink
Tweaks to GUI REPL connection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Dec 4, 2024
1 parent 3fd86b3 commit 1f62ab9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions convex-gui/src/main/java/convex/gui/repl/REPLClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.slf4j.LoggerFactory;

import convex.api.Convex;
import convex.core.crypto.AKeyPair;
import convex.core.crypto.wallet.AWalletEntry;
import convex.gui.components.AbstractGUI;
import convex.gui.components.ConnectPanel;
Expand Down Expand Up @@ -63,7 +64,7 @@ public static void main(String[] args) throws IOException, TimeoutException {
* @param convex Convex client instance
*/
public REPLClient(Convex convex) {
super ("Convex Client");
super ("Convex Terminal");
setLayout(new BorderLayout());
replPanel=new REPLPanel(convex);
this.add(tabs, BorderLayout.CENTER);
Expand All @@ -86,7 +87,8 @@ public void afterRun() {
if (we.isLocked()) {
UnlockWalletDialog.offerUnlock(this, we);
}
convex.setKeyPair(we.getKeyPair());
AKeyPair kp=we.getKeyPair();
convex.setKeyPair(kp);
} else {
Toolkit.showMessge(this, "The key for this account is not in your key ring.\n\nTerminal opened in Query mode.");
}
Expand Down

0 comments on commit 1f62ab9

Please sign in to comment.