mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Remove popup when UI thread is blocked for > 20 sec.
Fixes https://github.com/bisq-network/bisq/issues/6703 Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
ac8ad24807
commit
4475857db3
@ -635,7 +635,12 @@ public class MainViewModel implements ViewModel, BisqSetup.BisqSetupListener {
|
||||
@Override
|
||||
public void onAwakeFromStandby(long missedMs) {
|
||||
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)) {
|
||||
new Popup().warning(Res.get("mainView.networkWarning.clockWatcher", missedMs / 1000))
|
||||
.actionButtonText(Res.get("shared.iUnderstand"))
|
||||
@ -643,7 +648,7 @@ public class MainViewModel implements ViewModel, BisqSetup.BisqSetupListener {
|
||||
.dontShowAgainId(key)
|
||||
.hideCloseButton()
|
||||
.show();
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user