Written by

Software Integration Engineer at LEAD North LLC
Question Andre Ribera · Jan 21, 2025

In Studio is there a way to access the code that flags whether a project has unsaved changes? (is there a property that controls the "star" on unsaved projects?)

I'm working on some code that would benefit from being able to see whether or not a project file has been saved in Studio.
I can see when I make changes, that the project name has an asterisk added to it:

In searching for it, however, I haven't been able to find any methods or calls to access the property/check that controls that asterisk.
My question is whether anyone out there knows if that is accessible and if so then how can it be accessed.
I'd like to add a check in my code that enforces that the project file must be saved prior to proceeding with the intended action. (alerting in case the asterisk is present, e.g. the project hasn't been saved)
 

Product version: IRIS 2024.1
$ZV: IRIS for Windows (x86-64) 2024.1 (Build 267_2U) Tue Apr 30 2024 16:35:10 EDT

Comments

Andre Ribera  Jan 21, 2025 to Brett Saviano

I saw that it was being deprecated but the client just upgraded tpo 2024.1 recently so it is unlikely they'll upgrade again for a bit. Believe me, I wish we were in VSCode there too haha

0