mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
change type and name of enable zbar config variable
This commit is contained in:
parent
f88628c469
commit
b0883f034b
2 changed files with 4 additions and 8 deletions
|
@ -58,7 +58,7 @@ public class Config {
|
||||||
private int enumerateHwPeriod = ENUMERATE_HW_PERIOD_SECS;
|
private int enumerateHwPeriod = ENUMERATE_HW_PERIOD_SECS;
|
||||||
private QRDensity qrDensity;
|
private QRDensity qrDensity;
|
||||||
private Boolean hdCapture;
|
private Boolean hdCapture;
|
||||||
private Boolean zbarScan;
|
private boolean useZbar = true;
|
||||||
private String webcamDevice;
|
private String webcamDevice;
|
||||||
private ServerType serverType;
|
private ServerType serverType;
|
||||||
private Server publicElectrumServer;
|
private Server publicElectrumServer;
|
||||||
|
@ -405,12 +405,8 @@ public class Config {
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean isZbarScan() {
|
public boolean isUseZbar() {
|
||||||
return zbarScan == null || zbarScan;
|
return useZbar;
|
||||||
}
|
|
||||||
|
|
||||||
public void setZbarScan(Boolean zbarScan) {
|
|
||||||
this.zbarScan = zbarScan;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getWebcamDevice() {
|
public String getWebcamDevice() {
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class ZBar {
|
||||||
private final static boolean enabled;
|
private final static boolean enabled;
|
||||||
|
|
||||||
static { // static initializer
|
static { // static initializer
|
||||||
if(com.sparrowwallet.sparrow.io.Config.get().isZbarScan()) {
|
if(com.sparrowwallet.sparrow.io.Config.get().isUseZbar()) {
|
||||||
enabled = loadLibrary();
|
enabled = loadLibrary();
|
||||||
} else {
|
} else {
|
||||||
enabled = false;
|
enabled = false;
|
||||||
|
|
Loading…
Reference in a new issue