Merge pull request #930 from ApexArray/fix-option-menu-focus

Fix option menu focus if opened while library still loading
This commit is contained in:
1hitsong 2023-01-27 08:04:57 -05:00 committed by GitHub
commit 6bcb940875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,6 +371,10 @@ sub ItemDataLoaded(msg)
m.loading = false
m.spinner.visible = false
' Return focus to options menu if it was opened while library was loading
if m.options.visible
m.options.setFocus(true)
end if
return
end if
@ -413,6 +417,10 @@ sub ItemDataLoaded(msg)
end if
m.spinner.visible = false
' Return focus to options menu if it was opened while library was loading
if m.options.visible
m.options.setFocus(true)
end if
end sub
'