Skip to content

Commit 08b2e76

Browse files
committed
Add user-defined contest handling and error logging in MainWindow
1 parent 696673c commit 08b2e76

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

not1mm/__main__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
from not1mm.lib.versiontest import VersionTest
7575
from not1mm.lib.ft8_watcher import FT8Watcher
7676
from not1mm.lib.fldigi_sendstring import FlDigi_Comm
77+
from not1mm.lib.parse_udc import UDC
7778

7879
import not1mm.fsutils as fsutils
7980
from not1mm.logwindow import LogWindow
@@ -223,9 +224,17 @@ class MainWindow(QtWidgets.QMainWindow):
223224

224225
server_commands = []
225226

227+
user_defined_contest = UDC()
228+
226229
def __init__(self, splash):
227230
super().__init__()
228231
logger.info("MainWindow: __init__")
232+
try:
233+
print(
234+
f"{self.user_defined_contest.get_udc_names(Path.home() / 'UDC_FILES')}"
235+
)
236+
except Exception as e:
237+
print(f"{e=}")
229238
self.splash = splash
230239
self.dock_loc = {
231240
"Top": Qt.DockWidgetArea.TopDockWidgetArea,

0 commit comments

Comments
 (0)