fixed custom cache path loading issues

This commit is contained in:
k4yt3x
2020-05-09 05:39:40 -04:00
parent bef3861d3c
commit 2d9c5fe751
2 changed files with 3 additions and 3 deletions

View File

@@ -362,8 +362,8 @@ class Video2XMainWindow(QMainWindow):
# set cache directory path
if self.config['video2x']['video2x_cache_directory'] is None:
video2x_cache_directory = str((pathlib.Path(tempfile.gettempdir()) / 'video2x').absolute())
self.cache_line_edit.setText(video2x_cache_directory)
self.config['video2x']['video2x_cache_directory'] = str((pathlib.Path(tempfile.gettempdir()) / 'video2x').absolute())
self.cache_line_edit.setText(self.config['video2x']['video2x_cache_directory'])
# load preserve frames settings
self.preserve_frames_check_box.setChecked(self.config['video2x']['preserve_frames'])