Avoid to close the window buffer when the sketch is moved to the `src` folder
@@ -131,11 +131,8 @@ class ProjectCheck(QuickMenu):
if('src' not in file_path and not path.exists(dst)):
from shutil import move
- self.close_file()
-
move(file_path, dst)
-
- self.view = self.window.open_file(dst)
+ self.view.retarget(dst)
def override_src(self):
"""Adds src_dir
