[qcookboob] max results

This commit is contained in:
Julien Veyssier 2013-03-18 12:06:39 +01:00
commit 893437dd00
3 changed files with 35 additions and 5 deletions

View file

@ -32,6 +32,7 @@ class QCookboob(QtApplication):
SHORT_DESCRIPTION = "search recipes"
CAPS = ICapRecipe
CONFIG = {'settings': {'backend': '',
'maxresultsnumber': '10'
}
}
@ -39,6 +40,6 @@ class QCookboob(QtApplication):
self.load_backends([ICapRecipe])
self.load_config()
self.main_window = MainWindow(self.config, self.weboob)
self.main_window = MainWindow(self.config, self.weboob, self)
self.main_window.show()
return self.weboob.loop()