Made EIBI auto-bookmarks an option.
This commit is contained in:
parent
88d6558c90
commit
d00a95e729
|
|
@ -202,4 +202,5 @@ defaultConfig = PropertyLayer(
|
|||
wsprnet_enabled=False,
|
||||
wsprnet_callsign="N0CALL",
|
||||
paging_filter=True,
|
||||
eibi_bookmarks=False,
|
||||
).readonly()
|
||||
|
|
|
|||
|
|
@ -213,7 +213,9 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
|
|||
frequencyRange = (cf - srh, cf + srh)
|
||||
dial_frequencies = Bandplan.getSharedInstance().collectDialFrequencies(frequencyRange)
|
||||
bookmarks = [b.__dict__() for b in Bookmarks.getSharedInstance().getBookmarks(frequencyRange)]
|
||||
bookmarks += [b.__dict__() for b in EIBI.getSharedInstance().currentBookmarks(frequencyRange)]
|
||||
# Search EIBI schedule for bookmarks, if enabled
|
||||
if self.stack["eibi_bookmarks"]:
|
||||
bookmarks += [b.__dict__() for b in EIBI.getSharedInstance().currentBookmarks(frequencyRange)]
|
||||
self.write_dial_frequencies(dial_frequencies)
|
||||
self.write_bookmarks(bookmarks)
|
||||
|
||||
|
|
|
|||
|
|
@ -194,16 +194,20 @@ class GeneralSettingsController(SettingsFormController):
|
|||
"ui_frame",
|
||||
"Show frame around receiver panel",
|
||||
),
|
||||
CheckboxInput(
|
||||
"ui_swap_wheel",
|
||||
"Make mouse wheel control zoom, tune by holding wheel down",
|
||||
),
|
||||
DropdownInput(
|
||||
"tuning_precision",
|
||||
"Tuning precision",
|
||||
options=[Option(str(i), "{} Hz".format(10 ** i)) for i in range(0, 6)],
|
||||
converter=IntConverter(),
|
||||
),
|
||||
CheckboxInput(
|
||||
"ui_swap_wheel",
|
||||
"Make mouse wheel control zoom, tune by holding wheel down",
|
||||
),
|
||||
CheckboxInput(
|
||||
"eibi_bookmarks",
|
||||
"Automatically create bookmarks based on the EIBI schedules",
|
||||
),
|
||||
),
|
||||
Section(
|
||||
"Map settings",
|
||||
|
|
|
|||
Loading…
Reference in New Issue