Add dontShowAgain button in osxKeyLoggerWarning window

This commit is contained in:
chimp1984 2020-09-03 10:54:43 -05:00
parent 7c4273285e
commit 341c5193ce
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -389,9 +389,13 @@ public class MainViewModel implements ViewModel, BisqSetup.BisqSetupListener {
showRevolutAccountUpdateWindow(new ArrayList<>(revolutAccountList));
});
bisqSetup.setOsxKeyLoggerWarningHandler(() -> {
new Popup().warning(Res.get("popup.warning.osxKeyLoggerWarning"))
.closeButtonText(Res.get("shared.iUnderstand"))
.show();
String key = "osxKeyLoggerWarning";
if (preferences.showAgain(key)) {
new Popup().warning(Res.get("popup.warning.osxKeyLoggerWarning"))
.closeButtonText(Res.get("shared.iUnderstand"))
.dontShowAgainId(key)
.show();
}
});
corruptedDatabaseFilesHandler.getCorruptedDatabaseFiles().ifPresent(files -> new Popup()