mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
ASSFUCKING STUPID SHITPILE.
fixes #1044 (also add separator for cleaner menu)
This commit is contained in:
parent
50721719d2
commit
d3c298bbe4
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user