Skip to content

Commit 083a910

Browse files
committed
add bugreport button
1 parent 2a52e86 commit 083a910

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

mineclass.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
from PyQt5 import QtCore, QtWebSockets, QtNetwork
22
from PyQt5.QtWidgets import QWidget, QPushButton, QApplication, QLabel, QHBoxLayout, QVBoxLayout, QTableWidget, QTableWidgetItem, \
33
QComboBox, QInputDialog, QMessageBox, QHeaderView, QPlainTextEdit, QStackedLayout, QLineEdit, QFileDialog
4-
from PyQt5.QtCore import QSettings, QTimer
5-
from PyQt5.QtGui import QColor
4+
from PyQt5.QtCore import QSettings, QTimer, QUrl
5+
from PyQt5.QtGui import QColor, QDesktopServices
66
from pyqtgraph import PlotWidget, ScatterPlotItem, mkBrush
77
import json
88
import uuid
99
import datetime
1010
import socket
1111

1212
PORT = 65456
13+
FEEDBACK_URL = QUrl('https://docs.google.com/forms/d/e/1FAIpQLSfJzt81GjENdARMeORSi-YV-yX-GoebSz8CVlZbWFcwDQQZGQ/viewform')
1314

1415
#TODO
1516
# Notification when player uses a potion? subscribe to "ItemAcquired" or "ItemUsed" WON'T WORK! Only seems to work for your own items
@@ -316,10 +317,16 @@ def __init__(self, settings, server):
316317
self.disconnect_button.resize(self.disconnect_button.sizeHint())
317318
self.disconnect_button.clicked.connect(self.server.socket_disconnected)
318319
col_left.addWidget(self.disconnect_button)
319-
self.disconnect_button.setFixedWidth(140)
320320

321321
col_left.addStretch()
322322

323+
self.feedback_button = QPushButton('Feedback/Bug report', self)
324+
self.feedback_button.resize(self.feedback_button.sizeHint())
325+
self.feedback_button.clicked.connect(lambda: QDesktopServices.openUrl(FEEDBACK_URL))
326+
col_left.addWidget(self.feedback_button)
327+
self.feedback_button.setFixedWidth(140)
328+
329+
323330
# Middle Column: Roll/Register
324331
self.classes_combo = QComboBox(self)
325332
class_names = self.settings.value("class_names", [])

0 commit comments

Comments
 (0)