mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-14 15:48:21 +02:00
When a VST effect is opened, the dialog is not the focus.
Problem caused by commit: 79c3bef SetFocus() is being called when !success. Fix: Move the call to SetFocus back to its original place in the code.
This commit is contained in:
parent
36dcddf56f
commit
c1c19774b4
@ -4218,10 +4218,6 @@ bool AudacityProject::OnEffect(const PluginID & ID, int flags)
|
|||||||
UpdateMenus(false);
|
UpdateMenus(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (focus != NULL) {
|
|
||||||
focus->SetFocus();
|
|
||||||
}
|
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
//double prevEndTime = mTracks->GetEndTime();
|
//double prevEndTime = mTracks->GetEndTime();
|
||||||
@ -4290,6 +4286,9 @@ bool AudacityProject::OnEffect(const PluginID & ID, int flags)
|
|||||||
// mTrackPanel->Refresh(false);
|
// mTrackPanel->Refresh(false);
|
||||||
}
|
}
|
||||||
RedrawProject();
|
RedrawProject();
|
||||||
|
if (focus != nullptr) {
|
||||||
|
focus->SetFocus();
|
||||||
|
}
|
||||||
mTrackPanel->EnsureVisible(mTrackPanel->GetFirstSelectedTrack());
|
mTrackPanel->EnsureVisible(mTrackPanel->GetFirstSelectedTrack());
|
||||||
|
|
||||||
mTrackPanel->Refresh(false);
|
mTrackPanel->Refresh(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user