mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-22 18:14:41 +01:00
Google & ShrinkUrl: Fix issue with super() in custom config types if plugin is reloaded.
This commit is contained in:
parent
b90bd4b9d9
commit
5a114aba2e
@ -90,7 +90,7 @@ class NumSearchResults(registry.PositiveInteger):
|
|||||||
def setValue(self, v):
|
def setValue(self, v):
|
||||||
if v > 8:
|
if v > 8:
|
||||||
self.error()
|
self.error()
|
||||||
super(NumSearchResults, self).setValue(v)
|
super(self.__class__, self).setValue(v)
|
||||||
|
|
||||||
class SafeSearch(registry.OnlySomeStrings):
|
class SafeSearch(registry.OnlySomeStrings):
|
||||||
validStrings = ['active', 'moderate', 'off']
|
validStrings = ['active', 'moderate', 'off']
|
||||||
|
@ -54,7 +54,7 @@ class ShrinkCycle(registry.SpaceSeparatedListOfStrings):
|
|||||||
self.lastIndex = -1
|
self.lastIndex = -1
|
||||||
|
|
||||||
def setValue(self, v):
|
def setValue(self, v):
|
||||||
super(ShrinkCycle, self).setValue(v)
|
super(self.__class__, self).setValue(v)
|
||||||
self.lastIndex = -1
|
self.lastIndex = -1
|
||||||
|
|
||||||
def getService(self):
|
def getService(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user