mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-23 22:34:23 -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;
|
package haveno.desktop.main.overlays.windows;
|
||||||
|
|
||||||
|
import haveno.common.util.Utilities;
|
||||||
import haveno.core.locale.Res;
|
import haveno.core.locale.Res;
|
||||||
import haveno.desktop.components.AutoTooltipLabel;
|
import haveno.desktop.components.AutoTooltipLabel;
|
||||||
import haveno.desktop.main.overlays.Overlay;
|
import haveno.desktop.main.overlays.Overlay;
|
||||||
|
@ -33,6 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
|
import java.net.URI;
|
||||||
|
|
||||||
public class QRCodeWindow extends Overlay<QRCodeWindow> {
|
public class QRCodeWindow extends Overlay<QRCodeWindow> {
|
||||||
private static final Logger log = LoggerFactory.getLogger(QRCodeWindow.class);
|
private static final Logger log = LoggerFactory.getLogger(QRCodeWindow.class);
|
||||||
|
@ -91,4 +93,12 @@ public class QRCodeWindow extends Overlay<QRCodeWindow> {
|
||||||
public String getClipboardText() {
|
public String getClipboardText() {
|
||||||
return moneroUri;
|
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