Preserve the path when changing flags for wxDirCtrl in Widgets sample

Do not reset the path in wxDirCtrl when changing its flags.

Resetting the path to the default view where no files are shown may make
showing off some flags more difficult.
This commit is contained in:
PB
2020-07-06 13:13:00 +02:00
parent 7b2061eaef
commit 0f22f25d37

View File

@@ -263,7 +263,7 @@ void DirCtrlWidgetsPage::CreateDirCtrl()
wxGenericDirCtrl *dirCtrl = new wxGenericDirCtrl(
this,
DirCtrlPage_Ctrl,
wxDirDialogDefaultFolderStr,
m_dirCtrl->GetPath(),
wxDefaultPosition,
wxDefaultSize,
style