Is there a way to check if eventghost needs to be saved for a python script?
I found eg.document.Save() in another thread
EDIT:
Tried calling CheckFileNeedsSave(), returned wx.ID_OK fine but froze up trying to display the save dialog.
Made a GetIsDirty() method, which just returns isDirty value.
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Check if eventghost needs to be saved
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Check if eventghost needs to be saved
It's simple.
Variable eg.document.isDirty takes either True or False.
Pako
Variable eg.document.isDirty takes either True or False.
Pako
Re: Check if eventghost needs to be saved
Even better, Thanks Pako!