| 3206 | |
| 3207 | #ifdef USE_PLACES_FEATURE |
| 3208 | void IGFD::PlacesFeature::m_InitPlaces(FileDialogInternal& vFileDialogInternal) { |
| 3209 | #ifdef USE_PLACES_BOOKMARKS |
| 3210 | (void)vFileDialogInternal; // for disable compiler warning about unused var |
| 3211 | AddPlacesGroup(placesBookmarksGroupName, placesBookmarksDisplayOrder, true, PLACES_BOOKMARK_DEFAULT_OPEPEND); |
| 3212 | #endif // USE_PLACES_BOOKMARK |
| 3213 | #ifdef USE_PLACES_DEVICES |
| 3214 | AddPlacesGroup(placesDevicesGroupName, placesDevicesDisplayOrder, false, PLACES_DEVICES_DEFAULT_OPEPEND); |
| 3215 | auto devices_ptr = GetPlacesGroupPtr(placesDevicesGroupName); |
| 3216 | if (devices_ptr != nullptr && vFileDialogInternal.fileManager.GetFileSystemInstance() != nullptr) { |
| 3217 | const auto& devices = vFileDialogInternal.fileManager.GetFileSystemInstance()->GetDevicesList(); |
| 3218 | for (const auto& device : devices) { |
| 3219 | devices_ptr->AddPlace(device.first + " " + device.second, device.first + IGFD::Utils::GetPathSeparator(), false); |
| 3220 | } |
| 3221 | devices_ptr = nullptr; |
| 3222 | } |
| 3223 | #endif // USE_PLACES_DEVICES |
| 3224 | } |
| 3225 | |
| 3226 | void IGFD::PlacesFeature::m_DrawPlacesButton() { |
| 3227 | IMGUI_TOGGLE_BUTTON(placesButtonString, &m_PlacesPaneShown); |
nothing calls this directly
no test coverage detected