Hack around color setting failure in Qt6.5

Closes #2505
This commit is contained in:
Damien Elmes 2023-05-18 16:36:16 +10:00
parent 40a68afad3
commit 61555fef7d

View file

@ -151,7 +151,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
color = setColor(event);
bridgeCommand(`lastTextColor:${color}`);
}}
on:change={() => setTextColor()}
on:change={() => {
// Delay added to work around intermittent failures on macOS/Qt6.5
setTimeout(() => {
setTextColor();
}, 200);
}}
/>
</IconButton>
</WithColorHelper>