Only add delay if not devmode

This commit is contained in:
chimp1984 2021-10-21 11:02:07 +02:00
parent 2e384ede59
commit 9d8c705104
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -244,8 +244,11 @@ public class FilterWindow extends Overlay<FilterWindow> {
// working as expected)
if (filterManager.canRemoveDevFilter(privKeyString)) {
filterManager.removeDevFilter(privKeyString);
UserThread.runAfter(() -> addDevFilter(removeFilterMessageButton, privKeyString, newFilter),
5);
if (DevEnv.isDevMode()) {
addDevFilter(removeFilterMessageButton, privKeyString, newFilter);
} else {
UserThread.runAfter(() -> addDevFilter(removeFilterMessageButton, privKeyString, newFilter), 5);
}
} else {
addDevFilter(removeFilterMessageButton, privKeyString, newFilter);
}