From 4955902c9ac28d95824644ee2bdf09728ddfd039 Mon Sep 17 00:00:00 2001 From: Dummerle Date: Fri, 8 Oct 2021 23:55:30 +0200 Subject: [PATCH] Fix open webbrowser in store with wrong language --- rare/components/tabs/shop/game_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rare/components/tabs/shop/game_info.py b/rare/components/tabs/shop/game_info.py index ffb67ef7..7eb55677 100644 --- a/rare/components/tabs/shop/game_info.py +++ b/rare/components/tabs/shop/game_info.py @@ -6,6 +6,7 @@ from PyQt5.QtGui import QPixmap, QFont from PyQt5.QtWidgets import QWidget, QLabel, QPushButton, QHBoxLayout, QSpacerItem, QGroupBox from qtawesome import icon +from rare import shared from rare.components.tabs.shop.shop_models import ShopGame from rare.ui.components.tabs.store.shop_game_info import Ui_shop_info from rare.utils.extra_widgets import WaitingSpinner, ImageLabel @@ -212,7 +213,7 @@ class ShopGameInfo(QWidget, Ui_shop_info): self.wishlist.append(game["offer"]["title"]) def button_clicked(self): - webbrowser.open("https://www.epicgames.com/store/de/p/" + self.slug) + webbrowser.open(f"https://www.epicgames.com/store/{shared.legendary_core.language_code}/p/" + self.slug) class SocialButton(QPushButton):