mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-23 14:24:14 -04:00
open default wallet when qr window clicked
This commit is contained in:
parent
24b2aa5dad
commit
1edc5012f7
1 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
package haveno.desktop.main.overlays.windows;
|
||||
|
||||
import haveno.common.util.Utilities;
|
||||
import haveno.core.locale.Res;
|
||||
import haveno.desktop.components.AutoTooltipLabel;
|
||||
import haveno.desktop.main.overlays.Overlay;
|
||||
|
@ -33,6 +34,7 @@ import org.slf4j.Logger;
|
|||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.net.URI;
|
||||
|
||||
public class QRCodeWindow extends Overlay<QRCodeWindow> {
|
||||
private static final Logger log = LoggerFactory.getLogger(QRCodeWindow.class);
|
||||
|
@ -91,4 +93,12 @@ public class QRCodeWindow extends Overlay<QRCodeWindow> {
|
|||
public String getClipboardText() {
|
||||
return moneroUri;
|
||||
}
|
||||
|
||||
private void openWallet() {
|
||||
try {
|
||||
Utilities.openURI(URI.create(moneroUri));
|
||||
} catch (Exception e) {
|
||||
log.warn(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue