mirror of
https://github.com/Lime3DS/Lime3DS
synced 2025-01-09 13:43:27 +00:00
Tweaked shortcut creation msgbox identifiers to be more descriptive
This commit is contained in:
parent
ae845de352
commit
2b33150d79
2 changed files with 6 additions and 6 deletions
|
@ -1773,7 +1773,7 @@ bool GMainWindow::CreateShortcutMessagesGUI(QWidget* parent, int message,
|
||||||
int result = 0;
|
int result = 0;
|
||||||
QMessageBox::StandardButtons buttons;
|
QMessageBox::StandardButtons buttons;
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case GMainWindow::CREATE_SHORTCUT_MSGBOX_FULLSCREEN_YES:
|
case GMainWindow::CREATE_SHORTCUT_MSGBOX_FULLSCREEN_PROMPT:
|
||||||
buttons = QMessageBox::Yes | QMessageBox::No;
|
buttons = QMessageBox::Yes | QMessageBox::No;
|
||||||
result =
|
result =
|
||||||
QMessageBox::information(parent, tr("Create Shortcut"),
|
QMessageBox::information(parent, tr("Create Shortcut"),
|
||||||
|
@ -1783,7 +1783,7 @@ bool GMainWindow::CreateShortcutMessagesGUI(QWidget* parent, int message,
|
||||||
QMessageBox::information(parent, tr("Create Shortcut"),
|
QMessageBox::information(parent, tr("Create Shortcut"),
|
||||||
tr("Successfully created a shortcut to %1").arg(game_title));
|
tr("Successfully created a shortcut to %1").arg(game_title));
|
||||||
return false;
|
return false;
|
||||||
case GMainWindow::CREATE_SHORTCUT_MSGBOX_APPVOLATILE_WARNING:
|
case GMainWindow::CREATE_SHORTCUT_MSGBOX_APPIMAGE_VOLATILE_WARNING:
|
||||||
buttons = QMessageBox::StandardButton::Ok | QMessageBox::StandardButton::Cancel;
|
buttons = QMessageBox::StandardButton::Ok | QMessageBox::StandardButton::Cancel;
|
||||||
result =
|
result =
|
||||||
QMessageBox::warning(this, tr("Create Shortcut"),
|
QMessageBox::warning(this, tr("Create Shortcut"),
|
||||||
|
@ -1891,7 +1891,7 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga
|
||||||
std::string(Common::g_scm_rev).substr(0, 9).append(".AppImage");
|
std::string(Common::g_scm_rev).substr(0, 9).append(".AppImage");
|
||||||
if (citra_command.string().ends_with(appimage_ending) &&
|
if (citra_command.string().ends_with(appimage_ending) &&
|
||||||
!UISettings::values.shortcut_already_warned) {
|
!UISettings::values.shortcut_already_warned) {
|
||||||
if (CreateShortcutMessagesGUI(this, CREATE_SHORTCUT_MSGBOX_APPVOLATILE_WARNING,
|
if (CreateShortcutMessagesGUI(this, CREATE_SHORTCUT_MSGBOX_APPIMAGE_VOLATILE_WARNING,
|
||||||
qt_game_title)) {
|
qt_game_title)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1900,7 +1900,7 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga
|
||||||
#endif // __linux__
|
#endif // __linux__
|
||||||
// Create shortcut
|
// Create shortcut
|
||||||
std::string arguments = fmt::format("-g \"{:s}\"", game_path);
|
std::string arguments = fmt::format("-g \"{:s}\"", game_path);
|
||||||
if (CreateShortcutMessagesGUI(this, CREATE_SHORTCUT_MSGBOX_FULLSCREEN_YES, qt_game_title)) {
|
if (CreateShortcutMessagesGUI(this, CREATE_SHORTCUT_MSGBOX_FULLSCREEN_PROMPT, qt_game_title)) {
|
||||||
arguments = "-f " + arguments;
|
arguments = "-f " + arguments;
|
||||||
}
|
}
|
||||||
const std::string comment = fmt::format("Start {:s} with the Citra Emulator", game_title);
|
const std::string comment = fmt::format("Start {:s} with the Citra Emulator", game_title);
|
||||||
|
|
|
@ -204,10 +204,10 @@ private:
|
||||||
void closeEvent(QCloseEvent* event) override;
|
void closeEvent(QCloseEvent* event) override;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
CREATE_SHORTCUT_MSGBOX_FULLSCREEN_YES,
|
CREATE_SHORTCUT_MSGBOX_FULLSCREEN_PROMPT,
|
||||||
CREATE_SHORTCUT_MSGBOX_SUCCESS,
|
CREATE_SHORTCUT_MSGBOX_SUCCESS,
|
||||||
CREATE_SHORTCUT_MSGBOX_ERROR,
|
CREATE_SHORTCUT_MSGBOX_ERROR,
|
||||||
CREATE_SHORTCUT_MSGBOX_APPVOLATILE_WARNING,
|
CREATE_SHORTCUT_MSGBOX_APPIMAGE_VOLATILE_WARNING,
|
||||||
};
|
};
|
||||||
|
|
||||||
bool CreateShortcutMessagesGUI(QWidget* parent, int message, const QString& game_title);
|
bool CreateShortcutMessagesGUI(QWidget* parent, int message, const QString& game_title);
|
||||||
|
|
Loading…
Reference in a new issue