Skip to content

Commit

Permalink
feat: upgrade search engine to yahoo
Browse files Browse the repository at this point in the history
  • Loading branch information
theycallhermax authored May 29, 2023
1 parent 118643a commit 23c55e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ def __init__(self, *args, **kwargs):
super(MainWindow, self).__init__(*args, **kwargs)

def about_dialog():
QMessageBox.about(self, f"Crhmoe", "Version v2023.05.29 running on {}".format(system))
QMessageBox.about(self, f"Crhmoe", "Version v2023.05.29.1 running on {}".format(system))

self.browser = QWebEngineView()

self.browser.setUrl(QUrl("http://duckduckgo.com"))
self.browser.setUrl(QUrl("http://yahoo.com"))

oldAgent = self.browser.page().profile().httpUserAgent()
userAgent = oldAgent.replace("QtWebEngine/{}".format(qwebengver), "Crhmoe/2023.05.29")
Expand Down Expand Up @@ -93,12 +93,12 @@ def update_title(self):


def navigate_home(self):
self.browser.setUrl(QUrl("https://duckduckgo.com"))
self.browser.setUrl(QUrl("https://yahoo.com"))

def navigate_to_url(self):
q = QUrl(self.urlbar.text())
if q.scheme() == "":
full = "http://duckduckgo.com/?q=" + self.urlbar.text()
full = "https://search.yahoo.com/search?p=" + self.urlbar.text()
self.browser.setUrl(QUrl(full))
else:
self.browser.setUrl(q)
Expand Down

0 comments on commit 23c55e8

Please sign in to comment.