Renamed bookmark_add to add in bookmark manager.
This commit is contained in:
parent
8159c5f567
commit
4bc2f63608
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@ __pycache__
|
||||
/.tox
|
||||
/testresults.html
|
||||
/.cache
|
||||
TODO
|
||||
|
@ -95,7 +95,7 @@ class BookmarkManager(QObject):
|
||||
for tpl in self.bookmarks.items()]
|
||||
self._lineparser.save()
|
||||
|
||||
def bookmark_add(self, win_id, url, title):
|
||||
def add(self, win_id, url, title):
|
||||
"""Add a new bookmark.
|
||||
|
||||
Args:
|
||||
|
@ -1062,8 +1062,8 @@ class CommandDispatcher:
|
||||
def bookmark_add(self):
|
||||
"""Save the current page as a bookmark."""
|
||||
bookmark_manager = objreg.get('bookmark-manager')
|
||||
bookmark_manager.bookmark_add(self._win_id, self._current_url(),
|
||||
self._current_title())
|
||||
bookmark_manager.add(self._win_id, self._current_url(),
|
||||
self._current_title())
|
||||
|
||||
@cmdutils.register(instance='command-dispatcher', scope='window',
|
||||
maxsplit=0,
|
||||
|
Loading…
Reference in New Issue
Block a user