Remove CLEAN_TOR_DIR_AT_RESTART flag at download of new version

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2024-06-28 21:46:21 +07:00
parent 87ea800f66
commit 88c7feb29c
No known key found for this signature in database
GPG Key ID: 02AA2BAE387C8307

View File

@ -26,10 +26,8 @@ import bisq.desktop.main.overlays.popups.Popup;
import bisq.core.alert.Alert;
import bisq.core.locale.Res;
import bisq.core.user.CookieKey;
import bisq.core.user.User;
import bisq.common.UserThread;
import bisq.common.config.Config;
import bisq.common.util.Utilities;
@ -260,9 +258,6 @@ public class DisplayUpdateDownloadWindow extends Overlay<DisplayUpdateDownloadWi
if (verifyResults == null || verifyResults.isEmpty() || verifyFailed.isPresent()) {
showErrorMessage(downloadButton, statusLabel, Res.get("displayUpdateDownloadWindow.verify.failed"));
} else {
// We set a flag to clear tor cache files at re-start. We cannot clear it now as Tor is used and
// that can cause problems.
user.getCookie().putAsBoolean(CookieKey.CLEAN_TOR_DIR_AT_RESTART, true);
verifiedSigLabel.getStyleClass().add("success-text");
new Popup().feedback(Res.get("displayUpdateDownloadWindow.success"))
.actionButtonText(Res.get("displayUpdateDownloadWindow.download.openDir"))