mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
apprt/gtk: show debug warning whenever runtime safety is on
This commit is contained in:
@ -135,7 +135,7 @@ pub fn init(self: *Window, app: *App) !void {
|
|||||||
|
|
||||||
// In debug we show a warning. This is a really common issue where
|
// In debug we show a warning. This is a really common issue where
|
||||||
// people build from source in debug and performance is really bad.
|
// people build from source in debug and performance is really bad.
|
||||||
if (builtin.mode == .Debug) {
|
if (comptime std.debug.runtime_safety) {
|
||||||
const warning = c.gtk_label_new("⚠️ You're running a debug build of Ghostty! Performance will be degraded.");
|
const warning = c.gtk_label_new("⚠️ You're running a debug build of Ghostty! Performance will be degraded.");
|
||||||
c.gtk_widget_set_margin_top(warning, 10);
|
c.gtk_widget_set_margin_top(warning, 10);
|
||||||
c.gtk_widget_set_margin_bottom(warning, 10);
|
c.gtk_widget_set_margin_bottom(warning, 10);
|
||||||
|
Reference in New Issue
Block a user