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
|
/.tox
|
||||||
/testresults.html
|
/testresults.html
|
||||||
/.cache
|
/.cache
|
||||||
|
TODO
|
||||||
|
@ -95,7 +95,7 @@ class BookmarkManager(QObject):
|
|||||||
for tpl in self.bookmarks.items()]
|
for tpl in self.bookmarks.items()]
|
||||||
self._lineparser.save()
|
self._lineparser.save()
|
||||||
|
|
||||||
def bookmark_add(self, win_id, url, title):
|
def add(self, win_id, url, title):
|
||||||
"""Add a new bookmark.
|
"""Add a new bookmark.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
@ -1062,8 +1062,8 @@ class CommandDispatcher:
|
|||||||
def bookmark_add(self):
|
def bookmark_add(self):
|
||||||
"""Save the current page as a bookmark."""
|
"""Save the current page as a bookmark."""
|
||||||
bookmark_manager = objreg.get('bookmark-manager')
|
bookmark_manager = objreg.get('bookmark-manager')
|
||||||
bookmark_manager.bookmark_add(self._win_id, self._current_url(),
|
bookmark_manager.add(self._win_id, self._current_url(),
|
||||||
self._current_title())
|
self._current_title())
|
||||||
|
|
||||||
@cmdutils.register(instance='command-dispatcher', scope='window',
|
@cmdutils.register(instance='command-dispatcher', scope='window',
|
||||||
maxsplit=0,
|
maxsplit=0,
|
||||||
|
Loading…
Reference in New Issue
Block a user