fix breadcrumb clearing on empty tabs and window focus after dialog
Co-Authored-By: mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
2ec9f673e7eb508040d1138a39b55e9ef4f62ba9- Parents
-
0b61102 - Tree
e06b5a0
2ec9f67
2ec9f673e7eb508040d1138a39b55e9ef4f62ba90b61102
e06b5a0| Status | File | + | - |
|---|---|---|---|
| M |
src/gui/breadcrumb_widget.f90
|
5 | 1 |
| M |
src/gui/gtk_app.f90
|
5 | 0 |
src/gui/gtk_app.f90modified@@ -559,6 +559,11 @@ contains | ||
| 559 | 559 | ! Call helper to show native file picker |
| 560 | 560 | call show_native_directory_picker(selected_path, status) |
| 561 | 561 | |
| 562 | + ! Restore window focus after dialog (native dialogs steal focus on macOS) | |
| 563 | + if (c_associated(main_window_ptr)) then | |
| 564 | + call gtk_window_present(main_window_ptr) | |
| 565 | + end if | |
| 566 | + | |
| 562 | 567 | if (status == 0 .and. len_trim(selected_path) > 0) then |
| 563 | 568 | print *, "Selected directory: ", trim(selected_path) |
| 564 | 569 | |