account-row: Use delayed state changes for GtkSwitch

When trying to go online/offline we're always waiting for confirmation
from the stack (even if it's a timeout) so the delayed pattern is a good choice.
This commit is contained in:
Evangelos Ribeiro Tzaras
2022-05-19 20:06:23 +02:00
parent 0605582fc7
commit 41479eea09
2 changed files with 20 additions and 6 deletions

View File

@@ -21,7 +21,7 @@
<property name="valign">center</property>
<property name="visible">True</property>
<property name="active">False</property>
<signal name="notify::active" handler="on_online_switched" swapped="yes"/>
<signal name="state-set" handler="on_online_switched" swapped="no"/>
</object>
</child>