1
0
Fork 0
mirror of synced 2024-07-01 04:30:20 +12:00

Remove Debug prints

This commit is contained in:
Dummerle 2022-01-09 00:32:37 +01:00
parent e79b928fdb
commit 018705626a
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1
3 changed files with 8 additions and 13 deletions

View file

@ -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)

View file

@ -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 = {}

View file

@ -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