kcjengr / probe_basic

User interface for the LinuxCNC machine control.
https://kcjengr.github.io/probe_basic/
GNU General Public License v3.0
90 stars 58 forks source link

Add a refresh button to the file explorer #119

Open chienMouille opened 3 months ago

chienMouille commented 3 months ago

Hi,

I ran into an issue using a mounted remote folder to upload gcode files to the debian machine running my CNC:

It seems that debian doesn't update automatically folders content upon changes (new file upload, file delete, etc). The way to get around this in the debian's file explorer is to manually click on refresh or press the F5 shortcut, to request for folder update.

As Probe_basic doesn't have a refresh feature (as far as I see), the folder ends up being locked out of date.

Adding to the issue, when I try and go up a folder and back to reload it, the folder button doesn't do anything. I believe it is because it is actually trying to go up a folder on the server, rather than from the local mounting point (which it doesn't have permissions for).

In my use case, I managed to go around this by implementing a watch do that makes full copies or the remote folder's files upon changes. Local folders are instantly updated on changes in both the debian and Probe_basic file explorers.

I just thought a simple refresh button or shortcut would solve this issue very easily.

Thanks a lot!