ASSFUCKING STUPID SHITPILE.

fixes #1044

(also add separator for cleaner menu)
This commit is contained in:
Arisotura 2021-05-06 00:33:50 +02:00
parent 50721719d2
commit d3c298bbe4

View File

@ -1929,7 +1929,7 @@ void MainWindow::updateRecentFilesMenu()
item_display.truncate(cut_start+1);
item_display += "...";
item_display += item_full.remove(0, cut_end);
item_display += QString(item_full).remove(0, cut_end);
}
QAction *actRecentFile_i = recentMenu->addAction(QString("%1. %2").arg(i+1).arg(item_display));
@ -1940,6 +1940,8 @@ void MainWindow::updateRecentFilesMenu()
strncpy(Config::RecentROMList[i], recentFileList.at(i).toStdString().c_str(), 1024);
}
recentMenu->addSeparator();
QAction *actClearRecentList = recentMenu->addAction("Clear");
connect(actClearRecentList, &QAction::triggered, this, &MainWindow::onClearRecentFiles);