mateoconlechuga / cesium

A GUI shell for the TI-84+CE
BSD 3-Clause "New" or "Revised" License
258 stars 17 forks source link

Program lock status isn't remembered after a garbage collect #276

Open Aquateraneal opened 5 months ago

Aquateraneal commented 5 months ago

I have multiple programs that I have created and locked on-calc. Whenever a garbage collect happens, then all of them unlock. This is very annoying, as I have to go back and manually re-lock them every time. The odd thing is, if I lock a program using TI-Connect CE, it stays locked after a garbage collect. TI-Connect CE is obviously doing something that Cesium isn't, would it be possible to implement whatever TI-Connect CE is doing into Cesium?

Steps to reproduce:

Any way to fix this?

LogicalJoe commented 5 months ago

Your programs are archived when you lock them. Unarchive the program, modify the lock and hidden status, and then rearchive it. See #125 and #231 for the same thing regarding hidden programs.

Aquateraneal commented 5 months ago

No, that's not what I'm saying. What I'm saying is that, after a GarbageCollect, they lose their lock. (Also, locking works fine when the programs are archived, I only have to un- and re-archive them when I'm hiding them... Unless you mean that it only gets remembered IF I un- and re-archive them, in which case why I NEVER heard of this before?)