diff --git a/phIDE.py b/phIDE.py index 532da8d..3f92bc6 100644 --- a/phIDE.py +++ b/phIDE.py @@ -1262,13 +1262,11 @@ def new_file(self, _=None) -> None: path = ctk.filedialog.asksaveasfilename( title="Save As", filetypes=[("Phi File", "*.phi"), ("All Files", "*.*")]) - if os.path.exists(path): - self.current_path = path - - with open(self.current_path, "w") as f: - f.write("") + self.current_path = path + with open(self.current_path, "w") as f: + f.write("") - self.add_tab(self.current_path) + self.add_tab(self.current_path) if __name__ == "__main__":