Regretfully, fb2k does not provide `on_startup_done` callback and I can't implement it myself.
I have no need to recalculate the width of the text at every on_paint
As I've said, you can *cache* the value. Or just use a simple boolean guard
var isInitialized = false;
function on_paint()
{
if (!isInitialized )
{
CalculateSmth();
isInitialized =true;
}
}
I see. Thanks, I actually needed to be reassured that a workaround is needed here. I guess I'll just save the playing playlist name to a file, Talking of workarounds, I found out that you can trigger a few playlist events before the initial on_paint by adding and removing items to a playlist on start up. It's probably the closest you can get to an on_start_up_done.