mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-26 07:05:16 +00:00
Fix log view line colors after a clear
This commit is contained in:
@@ -210,7 +210,7 @@ class LogView(LogViewCommon):
|
||||
self.hbox.addWidget(self.save_log_as_button)
|
||||
self.save_log_as_button.clicked.connect(self._save_log_as_do)
|
||||
|
||||
self._prev_logitem_level = log.VERBOSITY_DEFAULT
|
||||
self._prev_logitem_level = logging.NOTSET
|
||||
|
||||
def _clear_highlight_do(self):
|
||||
self.highlight_text.setText('')
|
||||
@@ -279,6 +279,11 @@ class LogView(LogViewCommon):
|
||||
self.highlight_text.setFocus(QtCore.Qt.OtherFocusReason)
|
||||
super().show()
|
||||
|
||||
def display(self, clear=False):
|
||||
if clear:
|
||||
self._prev_logitem_level = logging.NOTSET
|
||||
super().display(clear=clear)
|
||||
|
||||
def _clear_log_do(self):
|
||||
reply = QtWidgets.QMessageBox.question(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user