1
0
Fork 0
mirror of synced 2024-06-28 11:11:15 +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 webbrowser
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QPixmap, QFont
from PyQt5.QtCore import Qt, QUrl
from PyQt5.QtGui import QPixmap, QFont, QDesktopServices
from PyQt5.QtWidgets import (
QWidget,
QLabel,
@ -259,15 +258,12 @@ class ShopGameInfo(QWidget, Ui_shop_info):
self.wishlist.append(game["offer"]["title"])
def button_clicked(self):
webbrowser.open(
f"https://www.epicgames.com/store/{shared.core.language_code}/p/"
+ self.slug
)
QDesktopServices.openUrl(QUrl(f"https://www.epicgames.com/store/{shared.core.language_code}/p/{self.slug}"))
class SocialButton(QPushButton):
def __init__(self, icn, url):
super(SocialButton, self).__init__(icn, "")
self.url = url
self.clicked.connect(lambda: webbrowser.open(url))
self.clicked.connect(lambda: QDesktopServices.openUrl(QUrl(url)))
self.setToolTip(url)

View file

@ -147,7 +147,6 @@ class ShopApiCore(QObject):
)
def _handle_browse_games(self, data, handle_func):
print(data)
self.browse_active = False
if data is None:
data = {}

View file

@ -180,5 +180,5 @@ class BrowseModel:
payload["effectiveDate"] = self.date
else:
payload.pop("priceRange")
print(self.date)
return payload