I am using PySide2 for GUI. I have a "Rename Project" QAction. The function must be like this:
- set enable to false if tab name is "*Untitled" or file is unsaved.
- set enable to True if file is loaded.
How to do this?
- Whenever switching to tab, these functions should be observed.