Skip to content

Commit

Permalink
Fix open url calls
Browse files Browse the repository at this point in the history
  • Loading branch information
gounux committed Apr 13, 2024
1 parent 5e5dd90 commit ae8f425
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion qtribu/gui/dlg_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def submit_news(self) -> None:
self.form_rdp_news.show()

def donate(self) -> None:
self._open_url_in_browser("https://fr.tipeee.com/geotribu")
open_url_in_browser("https://geotribu.fr/team/sponsoring/")

def refresh_list(self, expand_all: bool = False) -> None:
# fetch last RSS items using JSONFeed
Expand Down
4 changes: 2 additions & 2 deletions qtribu/gui/dlg_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ def __init__(self, parent=None):

# customization
self.btn_help.setIcon(QIcon(QgsApplication.iconPath("mActionHelpContents.svg")))
self.btn_help.pressed.connect(partial(open_url_in_browser(__uri_homepage__)))
self.btn_help.pressed.connect(partial(open_url_in_browser, __uri_homepage__))

self.btn_report.setIcon(
QIcon(QgsApplication.iconPath("console/iconSyntaxErrorConsole.svg"))
)
self.btn_report.pressed.connect(
partial(open_url_in_browser(f"{__uri_tracker__}new/choose"))
partial(open_url_in_browser, f"{__uri_tracker__}new/choose")
)

self.btn_reset_read_history.setIcon(
Expand Down
3 changes: 2 additions & 1 deletion qtribu/gui/form_rdp_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def __init__(self, parent=None):
# connect help button
self.btn_box.helpRequested.connect(
partial(
open_url_in_browser("https://contribuer.geotribu.fr/rdp/add_news/"),
open_url_in_browser,
"https://contribuer.geotribu.fr/rdp/add_news/",
)
)

Expand Down
11 changes: 7 additions & 4 deletions qtribu/plugin_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def initGui(self):
self.iface.mainWindow(),
)
self.action_help.triggered.connect(
partial(open_url_in_browser(__uri_homepage__))
partial(open_url_in_browser, __uri_homepage__)
)

self.action_settings = QAction(
Expand Down Expand Up @@ -143,7 +143,8 @@ def initGui(self):
)
self.action_geotribu.triggered.connect(
partial(
open_url_in_browser("https://geotribu.fr"),
open_url_in_browser,
"https://geotribu.fr",
)
)

Expand All @@ -153,7 +154,8 @@ def initGui(self):
)
self.action_georezo.triggered.connect(
partial(
open_url_in_browser("https://georezo.net/forum/viewforum.php?id=55"),
open_url_in_browser,
"https://georezo.net/forum/viewforum.php?id=55",
)
)
self.action_osgeofr = QAction(
Expand All @@ -162,7 +164,8 @@ def initGui(self):
)
self.action_osgeofr.triggered.connect(
partial(
open_url_in_browser("https://www.osgeo.fr/"),
open_url_in_browser,
"https://www.osgeo.fr/",
)
)
self.iface.helpMenu().addAction(self.action_georezo)
Expand Down

0 comments on commit ae8f425

Please sign in to comment.