From d035a539fbcc2dfa0dc03f11d3465bae650caf37 Mon Sep 17 00:00:00 2001 From: Aylur Date: Fri, 27 Sep 2024 21:39:07 +0000 Subject: style: fix indentation I will setup uncrustify at some point, but the number of options is overwhelming it will take a while --- core/src/widget/window.vala | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'core/src/widget') diff --git a/core/src/widget/window.vala b/core/src/widget/window.vala index 15c666c..f1a377f 100644 --- a/core/src/widget/window.vala +++ b/core/src/widget/window.vala @@ -52,26 +52,26 @@ public class Window : Gtk.Window { } public bool inhibit { - set { - if(inhibit_manager == null) { - return; - } - if(value && inhibitor == null) { - inhibitor = inhibit_manager.inhibit(this); + set { + if (inhibit_manager == null) { + return; + } + if (value && inhibitor == null) { + inhibitor = inhibit_manager.inhibit(this); + } + else if (!value && inhibitor != null) { + inhibitor = null; + } } - else if(!value && inhibitor != null){ - inhibitor = null; + get { + return inhibitor != null; } - } - get { - return inhibitor != null; - } } public override void show() { base.show(); if(inhibit) { - inhibitor = inhibit_manager.inhibit(this); + inhibitor = inhibit_manager.inhibit(this); } } -- cgit v1.2.3