Skip to content

Commit

Permalink
Added link to MS Store
Browse files Browse the repository at this point in the history
  • Loading branch information
szczyglis-dev committed Feb 1, 2025
1 parent f3ddec4 commit 8434e90
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pygpt_net/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# GitHub: https://github.com/szczyglis-dev/py-gpt #
# MIT License #
# Created By : Marcin Szczygliński #
# Updated Date: 2025.02.01 22:00:00 #
# Updated Date: 2025.02.01 02:00:00 #
# ================================================== #

__author__ = "Marcin Szczygliński"
Expand All @@ -24,6 +24,7 @@
__donate__ = "https://pygpt.net/#donate"
__documentation__ = "https://pygpt.readthedocs.io"
__discord__ = "https://pygpt.net/discord"
__ms_store__ = "https://apps.microsoft.com/detail/xp99r4mx3x65vq"
__email__ = "[email protected]"
__donate_coffee__ = "https://pygpt.net/donate/buymeacoffee"
__donate_paypal__ = "https://pygpt.net/donate/paypal"
Expand Down
4 changes: 4 additions & 0 deletions src/pygpt_net/controller/dialogs/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ def goto_snap(self):
"""Open Snapcraft page"""
webbrowser.open(self.window.meta['snap'])

def goto_ms_store(self):
"""Open MS Store page"""
webbrowser.open(self.window.meta['ms_store'])

def goto_update(self):
"""Open update URL"""
webbrowser.open(self.window.meta['website'])
Expand Down
1 change: 1 addition & 0 deletions src/pygpt_net/data/locale/locale.en.ini
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ menu.info.docs = Documentation
menu.info.donate = Donate PyGPT
menu.info.github = GitHub
menu.info.license = License
menu.info.ms_store = Microsoft Store
menu.info.pypi = PyPi
menu.info.report = Report a bug
menu.info.snap = Snap Store
Expand Down
5 changes: 5 additions & 0 deletions src/pygpt_net/ui/menu/about.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def setup(self):
self.window)
self.window.ui.menu['info.snap'] = QAction(QIcon(":/icons/public_filled.svg"), trans("menu.info.snap"),
self.window)
self.window.ui.menu['info.ms_store'] = QAction(QIcon(":/icons/public_filled.svg"), trans("menu.info.ms_store"),
self.window)
self.window.ui.menu['info.github'] = QAction(QIcon(":/icons/public_filled.svg"), trans("menu.info.github"),
self.window)

Expand All @@ -68,6 +70,8 @@ def setup(self):
lambda: self.window.controller.dialogs.info.goto_pypi())
self.window.ui.menu['info.snap'].triggered.connect(
lambda: self.window.controller.dialogs.info.goto_snap())
self.window.ui.menu['info.ms_store'].triggered.connect(
lambda: self.window.controller.dialogs.info.goto_ms_store())
self.window.ui.menu['info.github'].triggered.connect(
lambda: self.window.controller.dialogs.info.goto_github())
self.window.ui.menu['info.discord'].triggered.connect(
Expand All @@ -89,5 +93,6 @@ def setup(self):
self.window.ui.menu['menu.about'].addAction(self.window.ui.menu['info.github'])
self.window.ui.menu['menu.about'].addAction(self.window.ui.menu['info.pypi'])
self.window.ui.menu['menu.about'].addAction(self.window.ui.menu['info.snap'])
self.window.ui.menu['menu.about'].addAction(self.window.ui.menu['info.ms_store'])
self.window.ui.menu['menu.about'].addAction(self.window.ui.menu['info.discord'])
self.window.ui.menu['menu.about'].addAction(self.window.ui.menu['info.license'])
3 changes: 2 additions & 1 deletion src/pygpt_net/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# GitHub: https://github.com/szczyglis-dev/py-gpt #
# MIT License #
# Created By : Marcin Szczygliński #
# Updated Date: 2025.01.16 01:00:00 #
# Updated Date: 2025.02.01 02:00:00 #
# ================================================== #

import json
Expand Down Expand Up @@ -93,6 +93,7 @@ def get_app_meta() -> dict:
'docs': get_init_value("__documentation__"),
'pypi': get_init_value("__pypi__"),
'snap': get_init_value("__snap__"),
'ms_store': get_init_value("__ms_store__"),
'donate': get_init_value("__donate__"),
'discord': get_init_value("__discord__"),
'version': get_init_value("__version__"),
Expand Down

0 comments on commit 8434e90

Please sign in to comment.