rocksdanister / lively

Free and open-source software that allows users to set animated desktop wallpapers and screensavers powered by WinUI 3.
https://rocksdanister.com/lively
GNU General Public License v3.0
14.77k stars 1.05k forks source link

Reload webpage when file changes. #429

Open rocksdanister opened 4 years ago

rocksdanister commented 4 years ago

Implement directory watcher to monitor changes in the html files and reload the page when change detected.

Ref: https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher?view=netframework-4.7.2

rocksdanister commented 4 years ago

Tried it.. can't edit the files while being used by cefsharp.

ricksanche2 commented 3 years ago

Could use copied files then watch the original, when changed make a new copy, reload then delete the old copy. Because web files that could be edited won't be too expensive to make a copy.