mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:03:36 +02:00
...
This commit is contained in:
parent
90be86c777
commit
bba6317da2
1 changed files with 3 additions and 1 deletions
|
|
@ -20,6 +20,7 @@
|
|||
question_dialog, gprefs)
|
||||
from calibre.utils.search_query_parser import SearchQueryParser
|
||||
from calibre.utils.icu import lower
|
||||
from calibre.constants import iswindows
|
||||
|
||||
class PluginModel(QAbstractItemModel, SearchQueryParser): # {{{
|
||||
|
||||
|
|
@ -272,8 +273,9 @@ def remove_plugin(self, *args):
|
|||
self.modify_plugin(op='remove')
|
||||
|
||||
def add_plugin(self):
|
||||
info = '' if iswindows else ' [.zip %s]'%_('files')
|
||||
path = choose_files(self, 'add a plugin dialog', _('Add plugin'),
|
||||
filters=[(_('Plugins [.zip files]'), ['zip'])], all_files=False,
|
||||
filters=[(_('Plugins') + info, ['zip'])], all_files=False,
|
||||
select_only_single_file=True)
|
||||
if not path:
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue