Skip to content

Commit 44ae7ea

Browse files
authored
Merge pull request #428 from mathoudebine/fix/401-theme-editor-crashes-when-using-vim
2 parents d038a91 + e695c8f commit 44ae7ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

theme-editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def on_zone_click(event):
260260
"update automatically")
261261
# Every time the theme file is modified: reload preview
262262
while True:
263-
if os.path.getmtime(theme_file) > last_edit_time:
263+
if os.path.exists(theme_file) and os.path.getmtime(theme_file) > last_edit_time:
264264
logger.debug("The theme file has been updated, the preview window will refresh")
265265
refresh_theme()
266266
last_edit_time = os.path.getmtime(theme_file)

0 commit comments

Comments
 (0)