From 5a16cd2809d4d6dfa54c7995966630cefa3fe400 Mon Sep 17 00:00:00 2001 From: Aylur Date: Fri, 20 Dec 2024 23:42:59 +0100 Subject: fix: slider style --- lib/astal/gtk4/src/application.vala | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'lib/astal/gtk4/src/application.vala') diff --git a/lib/astal/gtk4/src/application.vala b/lib/astal/gtk4/src/application.vala index fadf705..fe5dd8d 100644 --- a/lib/astal/gtk4/src/application.vala +++ b/lib/astal/gtk4/src/application.vala @@ -146,13 +146,10 @@ public class Astal.Application : Gtk.Application, AstalIO.Application { if (reset) reset_css(); - try { - if (FileUtils.test(style, FileTest.EXISTS)) - provider.load_from_path(style); - else - provider.load_from_string(style); - } catch (Error err) { - critical(err.message); + if (FileUtils.test(style, FileTest.EXISTS)) { + provider.load_from_path(style); + } else { + provider.load_from_string(style); } Gtk.StyleContext.add_provider_for_display( -- cgit v1.2.3