mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-05 19:08:17 +00:00
apprt/gtk-ng: some style changes for toast
This commit is contained in:
@@ -961,16 +961,14 @@ pub const Window = extern struct {
|
||||
_: *gobject.ParamSpec,
|
||||
self: *Self,
|
||||
) callconv(.c) void {
|
||||
// We only toast if configured to
|
||||
const priv = self.private();
|
||||
const config_obj = priv.config orelse {
|
||||
self.syncAppearance();
|
||||
return;
|
||||
};
|
||||
const config = config_obj.get();
|
||||
if (config.@"app-notifications".@"config-reload") {
|
||||
self.addToast(i18n._("Reloaded the configuration"));
|
||||
if (priv.config) |config_obj| {
|
||||
const config = config_obj.get();
|
||||
if (config.@"app-notifications".@"config-reload") {
|
||||
self.addToast(i18n._("Reloaded the configuration"));
|
||||
}
|
||||
}
|
||||
|
||||
self.syncAppearance();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user