From e64c71199c39fb1637bb2fd410cf27b9f4575b12 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 24 Jul 2023 17:27:21 -0700 Subject: Bugfix: unity panel now shows saved paths The paths you enter in the Unity panel (animator, menu, params, and assets folder) are saved in the app config, but were not populated correctly on app restart or pane redraw. Now they are. --- GUI/GUI/GUI/Frame.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'GUI') diff --git a/GUI/GUI/GUI/Frame.cpp b/GUI/GUI/GUI/Frame.cpp index e6506bd..9f8823b 100644 --- a/GUI/GUI/GUI/Frame.cpp +++ b/GUI/GUI/GUI/Frame.cpp @@ -1477,6 +1477,18 @@ void Frame::ApplyConfigToInputFields() py_app_reset_on_toggle->SetValue(app_c_->reset_on_toggle); // Unity panel + auto* unity_assets_path = static_cast(FindWindowById(ID_UNITY_ASSETS_FILE_PICKER)); + unity_assets_path->SetPath(app_c_->assets_path); + + auto* unity_animator_path = static_cast(FindWindowById(ID_UNITY_ANIMATOR_FILE_PICKER)); + unity_animator_path->SetPath(app_c_->fx_path); + + auto* unity_params_path = static_cast(FindWindowById(ID_UNITY_PARAMETERS_FILE_PICKER)); + unity_params_path->SetPath(app_c_->params_path); + + auto* unity_menu_path = static_cast(FindWindowById(ID_UNITY_MENU_FILE_PICKER)); + unity_menu_path->SetPath(app_c_->menu_path); + auto* unity_chars_per_sync = static_cast(FindWindowById(ID_UNITY_CHARS_PER_SYNC)); unity_chars_per_sync->SetSelection(chars_idx); -- cgit v1.2.3