DebugSettings: Add restart button, thanks Dummerle!
This commit is contained in:
parent
385291cbfc
commit
48867a8656
|
@ -1,5 +1,7 @@
|
||||||
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QPushButton
|
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QPushButton
|
||||||
|
|
||||||
|
from rare.shared import GlobalSignalsSingleton
|
||||||
|
|
||||||
|
|
||||||
class DebugSettings(QWidget):
|
class DebugSettings(QWidget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -9,6 +11,9 @@ class DebugSettings(QWidget):
|
||||||
self.raise_runtime_exception_button = QPushButton("Raise Exception")
|
self.raise_runtime_exception_button = QPushButton("Raise Exception")
|
||||||
self.layout().addWidget(self.raise_runtime_exception_button)
|
self.layout().addWidget(self.raise_runtime_exception_button)
|
||||||
self.raise_runtime_exception_button.clicked.connect(self.raise_exception)
|
self.raise_runtime_exception_button.clicked.connect(self.raise_exception)
|
||||||
|
self.restart_button = QPushButton("Restart")
|
||||||
|
self.layout().addWidget(self.restart_button)
|
||||||
|
self.restart_button.clicked.connect(lambda: GlobalSignalsSingleton().exit_app.emit(-133742))
|
||||||
|
|
||||||
self.layout().addStretch(1)
|
self.layout().addStretch(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue