diff options
author | Aylur <[email protected]> | 2024-12-20 23:42:59 +0100 |
---|---|---|
committer | Aylur <[email protected]> | 2024-12-20 23:48:48 +0100 |
commit | 5a16cd2809d4d6dfa54c7995966630cefa3fe400 (patch) | |
tree | 9375eda0554e2fb9e72e0fc1cfdd49343e314127 /lib/astal/gtk4/src/application.vala | |
parent | 53bfc0929d62263547c1282b388040b9616a377e (diff) |
fix: slider
style
Diffstat (limited to 'lib/astal/gtk4/src/application.vala')
-rw-r--r-- | lib/astal/gtk4/src/application.vala | 11 |
1 files changed, 4 insertions, 7 deletions
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( |