make simpler

This commit is contained in:
Matthias 2022-01-20 23:53:50 +01:00
parent 9da234002b
commit 3d2113d98b
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -94,10 +94,8 @@ class PluginConfig(models.Model):
ret = super().save(force_insert, force_update, *args, **kwargs)
if not reload:
if self.active is False and self.__org_active is True:
registry.reload_plugins()
elif self.active is True and self.__org_active is False:
if (self.active is False and self.__org_active is True) or \
(self.active is True and self.__org_active is False):
registry.reload_plugins()
return ret