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.
This commit is contained in:
Joshua Leung
2014-01-05 01:24:29 +13:00
parent 6063c58cc6
commit 1db7f2f93d
2 changed files with 24 additions and 1 deletions

View File

@@ -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'")