Option to set screenshot directory.
This commit is contained in:
parent
8e7d7012ce
commit
fb984bf8ce
2 changed files with 18 additions and 0 deletions
|
@ -583,6 +583,17 @@ var load_flight = func {
|
|||
load_flight_sel.open();
|
||||
}
|
||||
|
||||
##
|
||||
# Screen-shot directory menu function
|
||||
#
|
||||
var set_screenshotdir_sel = nil;
|
||||
var set_screenshotdir = func {
|
||||
if (set_screenshotdir_sel == nil)
|
||||
set_screenshotdir_sel = gui.DirSelector.new(
|
||||
func(result) { setprop("/sim/paths/screenshot-dir", result.getValue()); },
|
||||
"Select Screenshot Directory", "Ok", getprop("/sim/paths/screenshot-dir"));
|
||||
set_screenshotdir_sel.open();
|
||||
}
|
||||
|
||||
##
|
||||
# Open property browser with given target path.
|
||||
|
|
|
@ -62,6 +62,13 @@
|
|||
</script>
|
||||
</binding>
|
||||
</item>
|
||||
<item>
|
||||
<label>Screenshot Directory</label>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>gui.set_screenshotdir()</script>
|
||||
</binding>
|
||||
</item>
|
||||
<!--
|
||||
<item>
|
||||
<label>Last snapshot</label>
|
||||
|
|
Loading…
Add table
Reference in a new issue