Add wxFSW_EVENT_UNMOUNT wxFileSystemWatcher flag and implement it for Linux.
This flag generates the corresponding event when the file system containing the watched directory is unmounted. Currently it is only implemented for Linux where unmounting now generates this event instead of an error. Closes #14834. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -535,8 +535,12 @@ static wxString GetFSWEventChangeTypeName(int changeType)
|
||||
return "MODIFY";
|
||||
case wxFSW_EVENT_ACCESS:
|
||||
return "ACCESS";
|
||||
case wxFSW_EVENT_ATTRIB: // Currently this is wxGTK-only
|
||||
case wxFSW_EVENT_ATTRIB: // Currently this is wxGTK-only
|
||||
return "ATTRIBUTE";
|
||||
#ifdef wxHAS_INOTIFY
|
||||
case wxFSW_EVENT_UNMOUNT: // Currently this is wxGTK-only
|
||||
return "UNMOUNT";
|
||||
#endif
|
||||
case wxFSW_EVENT_WARNING:
|
||||
return "WARNING";
|
||||
case wxFSW_EVENT_ERROR:
|
||||
|
Reference in New Issue
Block a user