Browse Source

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'
master
SomberNight 3 years ago
parent
commit
d189fdce69
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 5
      electrum/gui/qml/qeapp.py

5
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

Loading…
Cancel
Save