Useless code removed related to admin privileges, if it is not an error we can add it later, that is what git is for.
This commit is contained in:
parent
2a7edda70a
commit
4051bbbed7
|
@ -2962,12 +2962,6 @@ bool GMainWindow::CreateShortcutMessagesGUI(QWidget* parent, int imsg, const QSt
|
||||||
"not work well if you update. Continue?"),
|
"not work well if you update. Continue?"),
|
||||||
buttons);
|
buttons);
|
||||||
return result == QMessageBox::Ok;
|
return result == QMessageBox::Ok;
|
||||||
case GMainWindow::CREATE_SHORTCUT_MSGBOX_ADMIN:
|
|
||||||
buttons = QMessageBox::Ok;
|
|
||||||
QMessageBox::critical(parent, tr("Create Shortcut"),
|
|
||||||
tr("Cannot create shortcut in Apps. Restart yuzu as administrator."),
|
|
||||||
buttons);
|
|
||||||
return false;
|
|
||||||
default:
|
default:
|
||||||
buttons = QMessageBox::Ok;
|
buttons = QMessageBox::Ok;
|
||||||
QMessageBox::critical(parent, tr("Create Shortcut"),
|
QMessageBox::critical(parent, tr("Create Shortcut"),
|
||||||
|
|
|
@ -157,7 +157,6 @@ class GMainWindow : public QMainWindow {
|
||||||
CREATE_SHORTCUT_MSGBOX_SUCCESS,
|
CREATE_SHORTCUT_MSGBOX_SUCCESS,
|
||||||
CREATE_SHORTCUT_MSGBOX_ERROR,
|
CREATE_SHORTCUT_MSGBOX_ERROR,
|
||||||
CREATE_SHORTCUT_MSGBOX_APPVOLATILE_WARNING,
|
CREATE_SHORTCUT_MSGBOX_APPVOLATILE_WARNING,
|
||||||
CREATE_SHORTCUT_MSGBOX_ADMIN,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Reference in New Issue