feat: add readonly from env
This commit is contained in:
@@ -36,7 +36,10 @@ public class Main {
|
||||
|
||||
final Bytes decrypted = AESCryptTool.gcmDecrypt(keyBytes, nonceBytes).from(file).toBytes();
|
||||
|
||||
final boolean readonly = StringUtil.isOn(System.getProperty("readonly"));
|
||||
final boolean readonly = StringUtil.isOn(StringUtil.def(
|
||||
System.getenv("READONLY"),
|
||||
System.getProperty("readonly"))
|
||||
);
|
||||
final FutureResult futureResult = showWindow("Secure edit file",
|
||||
decrypted.string(),
|
||||
"File is encrypted in temp file",
|
||||
|
||||
Reference in New Issue
Block a user