mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Select current style when the style manager is opened
Originally committed to SVN as r6421.
This commit is contained in:
parent
f0933ecb1a
commit
439b1272b0
@ -181,10 +181,10 @@ DialogStyleManager::DialogStyleManager(agi::Context *context)
|
|||||||
CurrentList->Bind(wxEVT_KEY_DOWN, &DialogStyleManager::OnKeyDown, this);
|
CurrentList->Bind(wxEVT_KEY_DOWN, &DialogStyleManager::OnKeyDown, this);
|
||||||
|
|
||||||
// Select default item
|
// Select default item
|
||||||
wxString selected_style;
|
if (AssDialogue *dia = context->selectionController->GetActiveLine())
|
||||||
if (AssDialogue *dia = context->selectionController->GetActiveLine()) {
|
CurrentList->SetStringSelection(dia->Style);
|
||||||
selected_style = dia->Style;
|
else
|
||||||
}
|
CurrentList->SetSelection(0);
|
||||||
|
|
||||||
UpdateButtons();
|
UpdateButtons();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user