summaryrefslogtreecommitdiffstats
path: root/GUI
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-07-24 17:27:21 -0700
committeryum <yum.food.vr@gmail.com>2023-07-24 17:27:21 -0700
commite64c71199c39fb1637bb2fd410cf27b9f4575b12 (patch)
tree684eed7d82d74800a05c942fe052474d843903e5 /GUI
parenta602bfb95665697b15a2de58694c6ac064af2916 (diff)
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.
Diffstat (limited to 'GUI')
-rw-r--r--GUI/GUI/GUI/Frame.cpp12
1 files changed, 12 insertions, 0 deletions
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<wxDirPickerCtrl*>(FindWindowById(ID_UNITY_ASSETS_FILE_PICKER));
+ unity_assets_path->SetPath(app_c_->assets_path);
+
+ auto* unity_animator_path = static_cast<wxFilePickerCtrl*>(FindWindowById(ID_UNITY_ANIMATOR_FILE_PICKER));
+ unity_animator_path->SetPath(app_c_->fx_path);
+
+ auto* unity_params_path = static_cast<wxFilePickerCtrl*>(FindWindowById(ID_UNITY_PARAMETERS_FILE_PICKER));
+ unity_params_path->SetPath(app_c_->params_path);
+
+ auto* unity_menu_path = static_cast<wxFilePickerCtrl*>(FindWindowById(ID_UNITY_MENU_FILE_PICKER));
+ unity_menu_path->SetPath(app_c_->menu_path);
+
auto* unity_chars_per_sync = static_cast<wxChoice*>(FindWindowById(ID_UNITY_CHARS_PER_SYNC));
unity_chars_per_sync->SetSelection(chars_idx);