mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
lua: Fix dialog dropdowns that are empty by default on Mac
This commit is contained in:
parent
ad92ccf01a
commit
a631bf192c
@ -326,6 +326,12 @@ namespace Automation4 {
|
||||
{
|
||||
lua_getfield(L, -1, "items");
|
||||
read_string_array(L, items);
|
||||
|
||||
#ifdef __WXMAC__
|
||||
if (std::find(items.begin(), items.end(), value) == items.end()) {
|
||||
items.insert(items.begin(), value);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool CanSerialiseValue() const override { return true; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user