launcher: implement saving of plugin config + minor tweaks

This commit is contained in:
somewhatlurker
2019-08-30 00:16:34 +10:00
parent 6088bf9cef
commit bad2e02ce5
2 changed files with 62 additions and 37 deletions
+5 -6
View File
@@ -132,12 +132,6 @@ namespace Launcher {
this->panel_Plugins->PerformLayout();
using namespace PluginConfig;
//tabPage_Components->Controls->Add(MakePanel(256, 256, testcfgconfigopts, toolTip1));
//tabPage_Components->Controls->Add(MakePanel(256, 100, std::vector<ConfigOptionBase*>(&componentsArray[0], &componentsArray[13]), toolTip1));
// trick Optimus into switching to the NVIDIA GPU
if (cuInit != NULL) cuInit(0);
@@ -581,6 +575,11 @@ private: System::Void SaveSettings() {
{
component->SaveOption();
}
for (ConfigOptionBase* option : AllPluginOpts)
{
option->SaveOption();
}
}
private: System::Void Ui_Load(System::Object^ sender, System::EventArgs^ e){
}