Explicit start/stop buttons for winds-aloft updater

This commit is contained in:
Tobias Dammers
2021-09-24 20:11:19 +02:00
parent 9b315100ff
commit e914d6afb8
3 changed files with 39 additions and 2 deletions
+26
View File
@@ -168,6 +168,7 @@
</group>
<group>
<layout>hbox</layout>
<halign>left</halign>
<checkbox>
<property>/sim/simbrief/options/import-winds-aloft</property>
<label>Winds Aloft</label>
@@ -177,6 +178,31 @@
<halign>left</halign>
<pref-width>100</pref-width>
</checkbox>
<text>
<label>Updater: unknown</label>
<format>Updater: %s</format>
<property>/sim/simbrief/aloft-updater-status</property>
<live type="bool">true</live>
<halign>left</halign>
</text>
<button>
<legend>Start</legend>
<binding>
<command>nasal</command>
<script>simbrief.startAloftUpdater();</script>
</binding>
<halign>left</halign>
</button>
<button>
<legend>Stop</legend>
<binding>
<command>nasal</command>
<script>simbrief.stopAloftUpdater();</script>
</binding>
<halign>left</halign>
</button>
<empty>
</empty>
</group>
<hrule/>
<group>