Skip to content

Commit

Permalink
fix uri loading when app already open
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed Dec 6, 2020
1 parent ee258ec commit e050c62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devdocs_desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def quit(self):
Gtk.main_quit()

def load_uri(self, term):
self.webview.load_uri("%s#q=%s" % (self.app_url, term))
string = "%s?q=%s" if bool(term) else "%s%s"
self.webview.load_uri(string % (self.app_url, term))

def settings_path(self, filepath=''):
root = "%s/devdocs-desktop" % os.path.expanduser('~/.config')
Expand Down

0 comments on commit e050c62

Please sign in to comment.