Description
Description
Currently, we can create a new file when the application starts, but not after that. We need to implement this function. The function header is already created, and the shortcut and the option in the menu are already available.
When creating a new file, the system should check if the current file has unsaved modifications and prompt the user to save before proceeding. Then, it should clear the current window and create a fresh file with a placeholder name like untitled
, allowing the user to rename and save it when ready using the saveFile()
function.
Task
- Implement MainWindow::newFile() function in
Line 65 in 226ea57
- Check if the current file has unsaved modifications
- prompt the user to save before proceeding
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done