summaryrefslogtreecommitdiffstats
path: root/platform/ios
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-28 17:48:42 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-28 17:48:42 +0200
commitc98fef08bf74e94c2c8f1ad2686a841f09b4120d (patch)
tree50c6063f7a3666b6222f3776816e6deb88a0802b /platform/ios
parentbc46623f00c6bb98c20fcbf95c9a7480dcca0254 (diff)
parent714effdf077a5be8e4ed34d2d2455e5fb76fae56 (diff)
downloadredot-engine-c98fef08bf74e94c2c8f1ad2686a841f09b4120d.tar.gz
Merge pull request #89033 from bruvzg/doc_end_err
[DisplayServer] Add error messages and descriptions to callbacks.
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/display_server_ios.mm7
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/ios/display_server_ios.mm b/platform/ios/display_server_ios.mm
index 5d7af25f28..a454dd5ba0 100644
--- a/platform/ios/display_server_ios.mm
+++ b/platform/ios/display_server_ios.mm
@@ -399,7 +399,12 @@ void DisplayServerIOS::set_system_theme_change_callback(const Callable &p_callab
void DisplayServerIOS::emit_system_theme_changed() {
if (system_theme_changed.is_valid()) {
- system_theme_changed.call();
+ Variant ret;
+ Callable::CallError ce;
+ system_theme_changed.callp(nullptr, 0, ret, ce);
+ if (ce.error != Callable::CallError::CALL_OK) {
+ ERR_PRINT(vformat("Failed to execute system theme changed callback: %s.", Variant::get_callable_error_text(system_theme_changed, nullptr, 0, ce)));
+ }
}
}