app: properly clear screen on new file

This commit is contained in:
Ramen2X 2024-12-13 14:20:39 -05:00
parent f237d0e1ae
commit 9c97f21e43

View file

@ -303,6 +303,8 @@ void MainWindow::TrimOffDirectory(QString& s)
void MainWindow::NewFile()
{
tree_->clearSelection();
SetPanel(panel_blank_, nullptr);
model_.SetCore(nullptr);
interleaf_.Clear();
model_.SetCore(&interleaf_);