Skip to content

Commit

Permalink
Fix Reset Formatting Button not working
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenComfyTea committed Nov 17, 2023
1 parent 6c53bda commit 2f8141b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/script_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ function script_handler.tick()
end

function script_handler.reset_formatting(properties, property)
script_handler.text_formatting = default_text_formatting;
script_handler.text_formatting = text_source_handler.default_formatting;

obslua.obs_data_set_string(my_settings, "text_formatting", default_text_formatting);
obslua.obs_data_set_string(my_settings, "text_formatting", text_source_handler.default_formatting);
obslua.obs_properties_apply_settings(properties, my_settings);

return true;
Expand Down

0 comments on commit 2f8141b

Please sign in to comment.