diff options
author | Aylur <[email protected]> | 2024-09-27 21:39:07 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-27 21:41:12 +0000 |
commit | d035a539fbcc2dfa0dc03f11d3465bae650caf37 (patch) | |
tree | 102d496d8575c40b31970e457bdd69cb07a36b27 | |
parent | 27d8bbf871efeefe628819d78547dc2ec64abf94 (diff) |
style: fix indentation
I will setup uncrustify at some point, but the number of options is
overwhelming it will take a while
-rw-r--r-- | core/src/widget/window.vala | 26 |
1 files changed, 13 insertions, 13 deletions
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); } } |