mirror of https://github.com/odrling/Aegisub
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");
|
lua_getfield(L, -1, "items");
|
||||||
read_string_array(L, 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; }
|
bool CanSerialiseValue() const override { return true; }
|
||||||
|
|
Loading…
Reference in New Issue