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.
pull/9339/head
Lukas 2025-10-26 04:08:32 +01:00 committed by GitHub
parent 75b4e8b5a7
commit fd969b53a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

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) {