mirror of
https://github.com/elementary/gala.git
synced 2025-01-03 07:42:14 +03:00
some windows may report null for their titles, catch that case when assigning tooltips
This commit is contained in:
parent
33cd59742f
commit
26ebdae58a
@ -603,7 +603,7 @@ namespace Gala {
|
||||
close_button.opacity = show ? 255 : 0;
|
||||
window_title.opacity = close_button.opacity;
|
||||
|
||||
window_title.set_text (window.get_title (), false);
|
||||
window_title.set_text (window.get_title () ?? "", false);
|
||||
window_title.set_max_width (dest_width - (TITLE_MAX_WIDTH_MARGIN * scale_factor));
|
||||
set_window_title_position (dest_width, dest_height);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user