shell: Track document modified status
Follow up fix for MR !285 (merged)
Use a state variable to check if the document has been modified and the window title updated.
Follow up fix for MR !285 (merged)
Use a state variable to check if the document has been modified and the window title updated.