Add an option to hide the power save warning at startup (#282)

* add an option to hide the power save warning at startup

* Fixed stuff and made it positive

* Changed description and name of switch

* Fixed tab

* Fixed name of element (my bad)

* Check power saver mode state when switching

* Warning set to true by default

---------

Co-authored-by: Jeffry Samuel <jeffrysamuer@gmail.com>
This commit is contained in:
mags0ft
2024-09-04 23:05:16 +02:00
committed by GitHub
parent 6e0ae393a4
commit 603fdb8150
2 changed files with 33 additions and 5 deletions

View File

@@ -263,6 +263,12 @@
<property name="title" translatable="yes">Run Alpaca In Background</property>
</object>
</child>
<child>
<object class="AdwSwitchRow" id="powersaver_warning_switch">
<signal name="notify::active" handler="switch_powersaver_warning"/>
<property name="title" translatable="yes">Show Power Saver Warning</property>
</object>
</child>
</object>
</child>
<child>