After `ghostty_app_update_config`, `ghostty_action_config_change_s` was
fired with the correct config. This happens synchronously, which will
update `App.config` in `App.configChange(_:target:v:)`.

Previously, after updating, `App.config` was set with the stale one,
which caused #8282.
This commit is contained in:
Lukas
2025-10-26 04:08:32 +01:00
committed by GitHub
parent 75b4e8b5a7
commit fd969b53a5

View File

@@ -149,10 +149,7 @@ extension Ghostty {
}
ghostty_app_update_config(app, newConfig.config!)
// We can only set our config after updating it so that we don't free
// memory that may still be in use
self.config = newConfig
/// applied config will be updated in ``Self.configChange(_:target:v:)``
}
func reloadConfig(surface: ghostty_surface_t, soft: Bool = false) {