mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-02 14:04:47 -04:00
Prevent active switch from changing mode
This commit is contained in:
@@ -365,9 +365,10 @@ void BookmarkView::onTreeActivate( wxTreeEvent& event ) {
|
||||
if (tvi) {
|
||||
if (tvi->type == TreeViewItem::TREEVIEW_ITEM_TYPE_ACTIVE) {
|
||||
if (!tvi->demod->isActive()) {
|
||||
wxGetApp().setFrequency(tvi->demod->getFrequency());
|
||||
wxGetApp().getDemodMgr().setActiveDemodulator(nullptr,true);
|
||||
|
||||
wxGetApp().getDemodMgr().setActiveDemodulator(tvi->demod,true);
|
||||
wxGetApp().getDemodMgr().setActiveDemodulator(tvi->demod,false);
|
||||
wxGetApp().setFrequency(tvi->demod->getFrequency());
|
||||
nextDemod = tvi->demod;
|
||||
}
|
||||
} else if (tvi->type == TreeViewItem::TREEVIEW_ITEM_TYPE_RECENT) {
|
||||
|
||||
Reference in New Issue
Block a user