Fix settings::write_default_config & added reset all settings button (#1547)
* fix(settings): correctly write default settings * feat(Settings): Added button to reset all settings * fix(Settings): Use SeparatorText for subtitle
This commit is contained in:
@ -4,7 +4,13 @@ namespace big
|
||||
{
|
||||
void view::settings()
|
||||
{
|
||||
components::sub_title("SETTINGS_MISC"_T);
|
||||
ImGui::SeparatorText("SETTINGS_MISC"_T.data());
|
||||
ImGui::Checkbox("SETTINGS_MISC_DEV_DLC"_T.data(), &g.settings.dev_dlc);
|
||||
|
||||
if (ImGui::Button("Reset Settings"))
|
||||
{
|
||||
g.write_default_config();
|
||||
g.load();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user