Open hannesdelbeke opened 1 year ago
bpy.data.filepath contains the filename
show path if file open
show star if file dirty
show Blender if new file/ no file path
>>> bpy.data.filepath
'C:\\Users\\user\\Downloads\\testcase.blend'
we either need to subscribe to a hook in Blender, or create a listener.
msgbus might let us subscribe to changes in filepath or dirty state.
app handlers might also be an option
might also need
it seems app handlers can handle file path but not dirty state of the blend session
current workaround: disable qt wrapping with BQT_DISABLE_WRAP
set to 1
blender 4 slightly changed it. showing unsaved for new scene
would be great to show name of open scene in blender title bar