Closed orzel closed 9 months ago
Hi @orzel, thnaks for raising this issue! I'm okay with your change, it cannot do harm to check if the file exists in any case. Do you want to create a PR for this? Otherwise I can commit the change myself.
For this one-liner, that's probably easier for you to just commit that.
When using
vim
and saving the file, the python code freaks out and the theme editor window dissapears.I'm not sure about the details, but I think
vim
handles filesaving differently than other editors. It uses rename instead of overwritting.I use the following change, which works, but might be considered a hack, or too quick & dirty, I'll let you decide:
if os.path.exists(theme_file) and os.path.getmtime(theme_file) > last_edit_time: