This commit is contained in:
wtlgo 2024-04-23 16:36:24 +01:00 committed by GitHub
commit 9250d8ebab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -329,7 +329,11 @@ public class ViaManagerImpl implements ViaManager {
* @param runnable runnable to be executed
*/
public void addEnableListener(Runnable runnable) {
enableListeners.add(runnable);
if (enableListeners != null) {
enableListeners.add(runnable);
} else {
runnable.run();
}
}
@Override