From d189fdce69e445dd26585fbe1613ac2edb10b3bc Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 29 Mar 2023 21:23:00 +0000 Subject: [PATCH] qml: crash reporter: fix "show never" option 102.82 | E | gui.qml.qeapp.Exception_Hook | exception caught by crash reporter Traceback (most recent call last): File "/home/user/wspace/electrum/electrum/gui/qml/qeapp.py", line 271, in showNever self.config.set_key(BaseCrashReporter.config_key, False) AttributeError: 'QEAppController' object has no attribute 'config' --- electrum/gui/qml/qeapp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/qeapp.py b/electrum/gui/qml/qeapp.py index f63270043..3dbbc36ea 100644 --- a/electrum/gui/qml/qeapp.py +++ b/electrum/gui/qml/qeapp.py @@ -6,7 +6,7 @@ import sys import html import threading import asyncio -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, Set from PyQt5.QtCore import (pyqtSlot, pyqtSignal, pyqtProperty, QObject, QUrl, QLocale, qInstallMessageHandler, QTimer, QSortFilterProxyModel) @@ -58,12 +58,13 @@ class QEAppController(BaseCrashReporter, QObject): sendingBugreportSuccess = pyqtSignal(str) sendingBugreportFailure = pyqtSignal(str) - def __init__(self, qedaemon, plugins): + def __init__(self, qedaemon: 'QEDaemon', plugins: 'Plugins'): BaseCrashReporter.__init__(self, None, None, None) QObject.__init__(self) self._qedaemon = qedaemon self._plugins = plugins + self.config = qedaemon.daemon.config self._crash_user_text = '' self._app_started = False