mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-13 13:15:59 +00:00
QT: Various interface fixes (#2496)
* QT: Various interface fixes * fix close without saving * + * + using the save and close buttons, everything works fine, but when using the X button it doesn't work very well... * fix close (X) without saving
This commit is contained in:
parent
22ca57b1f2
commit
e1ae052185
5 changed files with 70 additions and 5 deletions
|
@ -84,7 +84,9 @@ public:
|
|||
copyMenu->addAction(copyName);
|
||||
copyMenu->addAction(copySerial);
|
||||
copyMenu->addAction(copyVersion);
|
||||
copyMenu->addAction(copySize);
|
||||
if (Config::GetLoadGameSizeEnabled()) {
|
||||
copyMenu->addAction(copySize);
|
||||
}
|
||||
copyMenu->addAction(copyNameAll);
|
||||
|
||||
menu.addMenu(copyMenu);
|
||||
|
@ -362,12 +364,18 @@ public:
|
|||
}
|
||||
|
||||
if (selected == copyNameAll) {
|
||||
QString GameSizeEnabled;
|
||||
if (Config::GetLoadGameSizeEnabled()) {
|
||||
GameSizeEnabled = " | Size:" + QString::fromStdString(m_games[itemID].size);
|
||||
}
|
||||
|
||||
QClipboard* clipboard = QGuiApplication::clipboard();
|
||||
QString combinedText = QString("Name:%1 | Serial:%2 | Version:%3 | Size:%4")
|
||||
QString combinedText = QString("Name:%1 | Serial:%2 | Version:%3%4")
|
||||
.arg(QString::fromStdString(m_games[itemID].name))
|
||||
.arg(QString::fromStdString(m_games[itemID].serial))
|
||||
.arg(QString::fromStdString(m_games[itemID].version))
|
||||
.arg(QString::fromStdString(m_games[itemID].size));
|
||||
.arg(GameSizeEnabled);
|
||||
|
||||
clipboard->setText(combinedText);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue