Merge pull request #4470 from chimp1984/add-dontshowagain-button

Add dontShowAgain button in osxKeyLoggerWarning window
This commit is contained in:
Christoph Atteneder 2020-09-03 18:00:29 +02:00 committed by GitHub
commit 670a3d64cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()