1
0
Fork 0

Fix simbrief dialog

This commit is contained in:
legoboyvdlp R 2020-08-04 13:00:31 +01:00
parent f8508feccb
commit 5eefa330dd
2 changed files with 19 additions and 8 deletions

View file

@ -230,7 +230,7 @@ var readSettings = func {
setprop("/sim/model/autopush/route/show", getprop("/systems/acconfig/options/autopush/show-route"));
setprop("/sim/model/autopush/route/show-wingtip", getprop("/systems/acconfig/options/autopush/show-wingtip"));
setprop("/options/system/fo-view", getprop("/systems/acconfig/options/fo-view"));
setprop("/FMGC/internal/simbrief-username", getprop("/systems/acconfig/options/simbrief-username"));
setprop("/FMGC/simbrief-username", getprop("/systems/acconfig/options/simbrief-username"));
}
var writeSettings = func {

View file

@ -9,6 +9,12 @@
<name>simbrief</name>
<layout>vbox</layout>
<nasal>
<close>
acconfig.writeSettings();
</close>
</nasal>
<group>
<layout>hbox</layout>
<text>
@ -49,25 +55,30 @@
</text>
<text>
<halign>left</halign>
<label>4. Please enter your username in the following dialog box (not case sensitive)</label>
<label>4. Please enter your username in the following text field (not case sensitive)</label>
</text>
<group>
<layout>hbox</layout>
<text>
<halign>left</halign>
<label>Username: </label>
</text>
<input>
<width>200</width>
<height>25</height>
<label>Username</label>
<property>/FMGC/simbrief-username</property>
<binding>
<command>dialog-apply</command>
</binding>
<live>true</live>
<live type="bool">true</live>
</input>
</group>
<button>
<x>40</x>
<y>10</y>
<legend>Apply / Exit</legend>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
</PropertyList>