mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1663996 [Incorrect default recipe extension](https://bugs.launchpad.net/calibre/+bug/1663996)
This commit is contained in:
parent
7c3ced5f8c
commit
ffcf88668c
@ -604,7 +604,7 @@ class CustomRecipes(Dialog):
|
||||
def load_recipe(self):
|
||||
files = choose_files(self, 'recipe loader dialog',
|
||||
_('Choose a recipe file'),
|
||||
filters=[(_('Recipes'), ['.py', '.recipe'])],
|
||||
filters=[(_('Recipes'), ['py', 'recipe'])],
|
||||
all_files=False, select_only_single_file=True)
|
||||
if files:
|
||||
path = files[0]
|
||||
@ -661,6 +661,7 @@ class CustomRecipes(Dialog):
|
||||
self.advanced_recipe.recipe_source = src
|
||||
self.stack.setCurrentIndex(2)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from calibre.gui2 import Application
|
||||
from calibre.web.feeds.recipes.model import RecipeModel
|
||||
|
Loading…
x
Reference in New Issue
Block a user