mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
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:
commit
25908771c7
@ -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