minor style changes

This commit is contained in:
Mitchell Hashimoto
2024-03-28 14:45:44 -07:00
parent 9f0468f950
commit b6f5970264
2 changed files with 6 additions and 18 deletions

View File

@@ -151,16 +151,12 @@ pub fn init(core_app: *CoreApp, opts: Options) !App {
break :app @ptrCast(adw_app);
};
errdefer c.g_object_unref(app);
const gapp = @as(*c.GApplication, @ptrCast(app));
// force the resource path to a known value so that it doesn't depend on
// the app id
// the app id and load in compiled resources
c.g_application_set_resource_base_path(gapp, "/com/mitchellh/ghostty");
// load compiled-in resources
c.g_resources_register(c.ghostty_get_resource());
// The `activate` signal is used when Ghostty is first launched and when a