Skip to content

Commit e050c62

Browse files
committed
fix uri loading when app already open
1 parent ee258ec commit e050c62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

devdocs_desktop.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ def quit(self):
128128
Gtk.main_quit()
129129

130130
def load_uri(self, term):
131-
self.webview.load_uri("%s#q=%s" % (self.app_url, term))
131+
string = "%s?q=%s" if bool(term) else "%s%s"
132+
self.webview.load_uri(string % (self.app_url, term))
132133

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

0 commit comments

Comments
 (0)