Skip to content

Commit 892974a

Browse files
committed
Fetch app config file from parent
1 parent 13a125b commit 892974a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

BlocksScreen/lib/panels/filamentTab.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from lib.printer import Printer
66
from lib.filament import Filament
77
from lib.ui.filamentStackedWidget_ui import Ui_filamentStackedWidget
8-
from configfile import get_configparser
98
from lib.panels.widgets.popupDialogWidget import Popup
109
from PyQt6 import QtCore, QtGui, QtWidgets
1110

@@ -55,7 +54,7 @@ def __init__(self, parent: QtWidgets.QWidget, printer: Printer, ws, /) -> None:
5554
self._filament_state = self.FilamentStates.UNKNOWN
5655
self.filament_type = FilamentTypes.UNKNOWN
5756

58-
cfg = get_configparser()
57+
cfg = parent.config
5958
if cfg.has_section("filament_presence"):
6059
i = cfg.get_section("filament_presence", None)
6160
self.filament_sensor = i.get("name", str, None)

0 commit comments

Comments
 (0)