Page 1 of 1

Aliases in CFI

Posted: 21 Jan 2024 16:26
by Daniel0312
I'm not sure at all it qualifies as a bug...
I've been trying to use an alias to define the path to an icon ressource.
When defining the CFI, the icon in the box DOES show the icon, and the icons are updated in the file list.
When I restart (after saving :) ) the CFI definition is still there but the icons in the list are wrong.
One thing I should mention : the alias is defined in a script at XY startup... so I guess the alias gets set AFTER the CFI.
Is it possible to make it work ?

Re: Aliases in CFI

Posted: 21 Jan 2024 16:46
by admin
No, and you said why: the alias is not known yet when CFI are defined.

Re: Aliases in CFI

Posted: 21 Jan 2024 17:21
by Daniel0312
Since it works fine with CFA, I was hoping...
Too bad
Thanks

Re: Aliases in CFI

Posted: 21 Jan 2024 17:51
by admin
The difference in handling is due to performance considerations.

Re: Aliases in CFI

Posted: 21 Jan 2024 18:00
by Daniel0312
Since manually validating CFI works, is there a way to "refresh" or reload CFI by script ?

Re: Aliases in CFI

Posted: 21 Jan 2024 18:08
by admin
This should do:

Code: Select all

seticons(seticons(), s);

Re: Aliases in CFI

Posted: 21 Jan 2024 18:49
by Daniel0312
Just added your code in my init script >> perfect !
thanks