forked from openlp/openlp
Fix int issue
This commit is contained in:
parent
b94d1d1b8f
commit
582dd56ed2
@ -155,8 +155,8 @@ class Plugin(object):
|
||||
"""
|
||||
Sets the status of the plugin
|
||||
"""
|
||||
self.status = self.config.get_config(\
|
||||
u'%s_status' % self.name, PluginStatus.Inactive)
|
||||
self.status = int(self.config.get_config(\
|
||||
u'%s_status' % self.name, PluginStatus.Inactive))
|
||||
|
||||
def toggle_status(self, new_status):
|
||||
"""
|
||||
@ -171,7 +171,7 @@ class Plugin(object):
|
||||
|
||||
Returns True or False.
|
||||
"""
|
||||
return int(self.status ) == int(PluginStatus.Active)
|
||||
return self.status == PluginStatus.Active
|
||||
|
||||
def get_media_manager_item(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user