Merge pull request #6705 from HenrikJannsen/remove_sleep_warning_popup

Remove warning popup when UI thread is blocked for > 20 sec.
This commit is contained in:
Alejandro García 2023-05-23 09:05:42 +00:00 committed by GitHub
commit 25908771c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -635,7 +635,12 @@ public class MainViewModel implements ViewModel, BisqSetup.BisqSetupListener {
@Override @Override
public void onAwakeFromStandby(long missedMs) { public void onAwakeFromStandby(long missedMs) {
if (missedMs > TimeUnit.SECONDS.toMillis(10)) { if (missedMs > TimeUnit.SECONDS.toMillis(10)) {
String key = "clockWatcherWarning"; log.warn("UI thread has been blocked for {} sec", (int) missedMs / 1000);
// See: https://github.com/bisq-network/bisq/issues/6703
// Keep original code as once the blocking UI thread issue is
// fixed (https://github.com/bisq-network/bisq/issues/6704) we can re-enable it.
/* String key = "clockWatcherWarning";
if (DontShowAgainLookup.showAgain(key)) { if (DontShowAgainLookup.showAgain(key)) {
new Popup().warning(Res.get("mainView.networkWarning.clockWatcher", missedMs / 1000)) new Popup().warning(Res.get("mainView.networkWarning.clockWatcher", missedMs / 1000))
.actionButtonText(Res.get("shared.iUnderstand")) .actionButtonText(Res.get("shared.iUnderstand"))
@ -643,7 +648,7 @@ public class MainViewModel implements ViewModel, BisqSetup.BisqSetupListener {
.dontShowAgainId(key) .dontShowAgainId(key)
.hideCloseButton() .hideCloseButton()
.show(); .show();
} }*/
} }
} }
}; };