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

View File

@ -332,7 +332,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