Skip to content

Commit

Permalink
Fix criticals
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Aug 17, 2024
1 parent b07560a commit 0301003
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions lib/Widgets/AppBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,16 @@ public class He.AppBar : He.Bin {

if (value != false) {
if (viewtitle_widget != null) {
viewtitle_widget.remove_css_class ("view-title");
viewtitle_widget.add_css_class ("view-subtitle");
viewtitle.set_visible (false);
} else {
viewtitle.set_visible (true);
}
viewtitle.remove_css_class ("view-title");
viewtitle.add_css_class ("view-subtitle");
viewtitle_widget.remove_css_class ("view-title");
viewtitle_widget.add_css_class ("view-subtitle");
if (viewtitle != null) {
viewtitle.remove_css_class ("view-title");
viewtitle.add_css_class ("view-subtitle");
}
viewsubtitle.set_visible (false);
sub_box.set_visible (false);
btn_box.unparent ();
Expand All @@ -122,14 +124,16 @@ public class He.AppBar : He.Bin {
add_css_class ("compact");
} else {
if (viewtitle_widget != null) {
viewtitle_widget.remove_css_class ("view-subtitle");
viewtitle_widget.add_css_class ("view-title");
viewtitle.set_visible (false);
} else {
viewtitle.set_visible (true);
}
viewtitle.remove_css_class ("view-subtitle");
viewtitle.add_css_class ("view-title");
viewtitle_widget.remove_css_class ("view-subtitle");
viewtitle_widget.add_css_class ("view-title");
if (viewtitle != null) {
viewtitle.remove_css_class ("view-subtitle");
viewtitle.add_css_class ("view-title");
}
viewsubtitle.set_visible (true);
sub_box.set_visible (true);
btn_box.unparent ();
Expand Down

0 comments on commit 0301003

Please sign in to comment.