Skip to content

axis: remember the file opened at startup so reload works - #4869

Merged
grandixximo merged 1 commit into
LinuxCNC:masterfrom
rene-dev:axis-reload-initial-file
Nov 20, 2026
Merged

grandixximo merged 1 commit into
LinuxCNC:masterfrom
rene-dev:axis-reload-initial-file

Conversation

@rene-dev

Copy link
Copy Markdown
Member

Since 48f38c7 only open_file_name sets loaded_file, and the file given on the command line, in AXIS_OPEN_FILE or in [DISPLAY]OPEN_FILE is opened by open_initial_file through open_file_guts directly. With loaded_file unset, Reload, Edit, Properties and Save G-code As did nothing for that file, and neither did the reloads after Touch Off, clearing offsets or a tool length change, so the preview kept the old offsets and rotation and changes on disk were not read.

Fixes #4866

Since 48f38c7 only open_file_name sets loaded_file, and the file
given on the command line, in AXIS_OPEN_FILE or in [DISPLAY]OPEN_FILE
is opened by open_initial_file through open_file_guts directly. With
loaded_file unset, Reload, Edit, Properties and Save G-code As did
nothing for that file, and neither did the reloads after Touch Off,
clearing offsets or a tool length change, so the preview kept the old
offsets and rotation and changes on disk were not read.

Fixes LinuxCNC#4866
@grandixximo

Copy link
Copy Markdown
Contributor

@Sigma1912 Can you confirm fix works on your end as well?

@Sigma1912

Copy link
Copy Markdown
Contributor

Yes, this works for me. Thanks for the quick fix!

@grandixximo
grandixximo merged commit 00af21c into LinuxCNC:master Nov 20, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

master: AxisGui, reloading the preloaded gcode file no longer works

3 participants