apprt/gtk-ng: assert that GTK is uninitialized in setGtkEnv (#7965)

This commit is contained in:
Leah Amelia Chen
2025-07-17 18:15:07 +08:00
committed by GitHub

View File

@ -541,6 +541,8 @@ pub const GhosttyApplication = extern struct {
///
/// This must be called BEFORE GTK initialization.
fn setGtkEnv(config: *const Config) error{NoSpaceLeft}!void {
assert(gtk.isInitialized() == 0);
var gdk_debug: struct {
/// output OpenGL debug information
opengl: bool = false,