Remove Debug prints
This commit is contained in:
parent
e79b928fdb
commit
018705626a
|
@ -1,8 +1,7 @@
|
||||||
import logging
|
import logging
|
||||||
import webbrowser
|
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt, QUrl
|
||||||
from PyQt5.QtGui import QPixmap, QFont
|
from PyQt5.QtGui import QPixmap, QFont, QDesktopServices
|
||||||
from PyQt5.QtWidgets import (
|
from PyQt5.QtWidgets import (
|
||||||
QWidget,
|
QWidget,
|
||||||
QLabel,
|
QLabel,
|
||||||
|
@ -259,15 +258,12 @@ class ShopGameInfo(QWidget, Ui_shop_info):
|
||||||
self.wishlist.append(game["offer"]["title"])
|
self.wishlist.append(game["offer"]["title"])
|
||||||
|
|
||||||
def button_clicked(self):
|
def button_clicked(self):
|
||||||
webbrowser.open(
|
QDesktopServices.openUrl(QUrl(f"https://www.epicgames.com/store/{shared.core.language_code}/p/{self.slug}"))
|
||||||
f"https://www.epicgames.com/store/{shared.core.language_code}/p/"
|
|
||||||
+ self.slug
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class SocialButton(QPushButton):
|
class SocialButton(QPushButton):
|
||||||
def __init__(self, icn, url):
|
def __init__(self, icn, url):
|
||||||
super(SocialButton, self).__init__(icn, "")
|
super(SocialButton, self).__init__(icn, "")
|
||||||
self.url = url
|
self.url = url
|
||||||
self.clicked.connect(lambda: webbrowser.open(url))
|
self.clicked.connect(lambda: QDesktopServices.openUrl(QUrl(url)))
|
||||||
self.setToolTip(url)
|
self.setToolTip(url)
|
||||||
|
|
|
@ -147,7 +147,6 @@ class ShopApiCore(QObject):
|
||||||
)
|
)
|
||||||
|
|
||||||
def _handle_browse_games(self, data, handle_func):
|
def _handle_browse_games(self, data, handle_func):
|
||||||
print(data)
|
|
||||||
self.browse_active = False
|
self.browse_active = False
|
||||||
if data is None:
|
if data is None:
|
||||||
data = {}
|
data = {}
|
||||||
|
|
|
@ -180,5 +180,5 @@ class BrowseModel:
|
||||||
payload["effectiveDate"] = self.date
|
payload["effectiveDate"] = self.date
|
||||||
else:
|
else:
|
||||||
payload.pop("priceRange")
|
payload.pop("priceRange")
|
||||||
print(self.date)
|
|
||||||
return payload
|
return payload
|
||||||
|
|
Loading…
Reference in a new issue