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

pull/7972/head
Leah Amelia Chen 2025-07-17 18:15:07 +08:00 committed by GitHub
commit 0d61b94c10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

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,