mirror of https://github.com/OpenRCT2/OpenRCT2.git
Refresh loadsave on browse dialog cancel
This commit is contained in:
parent
152897cff0
commit
50d38eea2e
|
@ -9,6 +9,7 @@
|
|||
- Fix: [#6188] Viewports not being clipped properly when zoomed out in OpenGL mode.
|
||||
- Fix: Infinite loop when removing scenery elements with >127 base height.
|
||||
- Improved: [#6186] Transparent menu items now draw properly in OpenGL mode.
|
||||
- Improved: Load/save window now refreshes list if native file dialog is closed/cancelled
|
||||
|
||||
0.1.1 (2017-08-09)
|
||||
------------------------------------------------------------------------
|
||||
|
|
|
@ -321,7 +321,17 @@ static void window_loadsave_mouseup(rct_window *w, rct_widgetindex widgetIndex)
|
|||
break;
|
||||
case WIDX_BROWSE:
|
||||
if (browse(isSave, path, sizeof(path)))
|
||||
{
|
||||
window_loadsave_select(w, path);
|
||||
}
|
||||
else
|
||||
{
|
||||
// If user cancels file dialog, refresh list
|
||||
safe_strcpy(path, _directory, sizeof(path));
|
||||
window_loadsave_populate_list(w, isSave, path, _extension);
|
||||
window_init_scroll_widgets(w);
|
||||
w->no_list_items = _listItemsCount;
|
||||
}
|
||||
break;
|
||||
case WIDX_SORT_NAME:
|
||||
if (gConfigGeneral.load_save_sort == SORT_NAME_ASCENDING){
|
||||
|
|
Loading…
Reference in New Issue