fix: Specify type for log level combo box and adjust method signature
This commit is contained in:
parent
8b0df0e04f
commit
a8eaa84310
1 changed files with 3 additions and 2 deletions
|
|
@ -143,7 +143,8 @@ class SettingsDialog(QDialog):
|
||||||
|
|
||||||
# Log level selection
|
# Log level selection
|
||||||
layout.addWidget(QLabel("Log Level:"))
|
layout.addWidget(QLabel("Log Level:"))
|
||||||
self.log_level_combo = self._create_log_level_widget()
|
from PySide6.QtWidgets import QComboBox
|
||||||
|
self.log_level_combo: QComboBox = self._create_log_level_widget()
|
||||||
layout.addWidget(self.log_level_combo)
|
layout.addWidget(self.log_level_combo)
|
||||||
|
|
||||||
# Log file path
|
# Log file path
|
||||||
|
|
@ -241,7 +242,7 @@ class SettingsDialog(QDialog):
|
||||||
widget.setLayout(layout)
|
widget.setLayout(layout)
|
||||||
return widget
|
return widget
|
||||||
|
|
||||||
def _create_log_level_widget(self) -> QWidget:
|
def _create_log_level_widget(self):
|
||||||
"""Create log level selection widget."""
|
"""Create log level selection widget."""
|
||||||
from PySide6.QtWidgets import QComboBox
|
from PySide6.QtWidgets import QComboBox
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue