hoffstadt / hoffstadt/DearPyGui

file_dialog crashes when navigating to folder without read permissions

Open
#1,351 5 comments 1 reaction 0 assignees View on GitHub
priority: high type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

## Version of Dear PyGui

Version: 1.0.2
Operating System: Windows 10

## My Issue/Question

When using file_dialog and browsing to a folder that the current user does not have access to, dpg will crash.

## To Reproduce

Steps to reproduce the behavior:
1. Open dearpygui.dearpygui.add_file_dialog
2. Navigate to a folder you don't have permissions to
3. Try to get into the folder, dpg will crash

## Expected behavior

Expectation that dpg will not crash when attempting to navigate into folder one doesn't have permissions to. Behavior should be to stay in the parent directory.

## Standalone, minimal, complete and verifiable example

```python
# Here's some code anyone can copy and paste to reproduce your issue
import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()

dpg.add_file_dialog(label="File Dialog", show=True)

dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.