diff options
author | Joshua Leung <aligorith@gmail.com> | 2014-01-04 16:24:29 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2014-01-04 16:24:54 +0400 |
commit | 1db7f2f93d9d7a119be7998f5acb4a8f9547d8b9 (patch) | |
tree | 5c18017ccd47d52d6d367c0d3b1e8808d0a4432f /release/scripts/modules/sys_info.py | |
parent | 6063c58cc6d1e82d2288e0aa99846ab8ccd0228b (diff) |
Quick fix for system info text always being scrolled out of view when loaded for the first time
Added an API method to Text datablocks for moving the cursor to a specific line in the
file. This makes it possible to reset the cursor position at the end of the sysinfo
operator.
Diffstat (limited to 'release/scripts/modules/sys_info.py')
-rw-r--r-- | release/scripts/modules/sys_info.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py index 1785ab59a5f..f284ba475e3 100644 --- a/release/scripts/modules/sys_info.py +++ b/release/scripts/modules/sys_info.py @@ -163,4 +163,7 @@ def write_sysinfo(op): for l in glext: output.write("\t\t%r\n" % (l)) + # Back to first line, so everything is still in sight + output.jump(1) + op.report({'INFO'}, "System information generated in 'system-info.txt'") |