瀏覽代碼

Useless code removed related to admin privileges, if it is not an error we can add it later, that is what git is for.

boludoz 2 年之前
父節點
當前提交
4051bbbed7
共有 2 個文件被更改,包括 0 次插入7 次删除
  1. 0 6
      src/yuzu/main.cpp
  2. 0 1
      src/yuzu/main.h

+ 0 - 6
src/yuzu/main.cpp

@@ -2962,12 +2962,6 @@ bool GMainWindow::CreateShortcutMessagesGUI(QWidget* parent, int imsg, const QSt
                                     "not work well if you update. Continue?"),
                                  buttons);
         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:
         buttons = QMessageBox::Ok;
         QMessageBox::critical(parent, tr("Create Shortcut"),

+ 0 - 1
src/yuzu/main.h

@@ -157,7 +157,6 @@ class GMainWindow : public QMainWindow {
         CREATE_SHORTCUT_MSGBOX_SUCCESS,
         CREATE_SHORTCUT_MSGBOX_ERROR,
         CREATE_SHORTCUT_MSGBOX_APPVOLATILE_WARNING,
-        CREATE_SHORTCUT_MSGBOX_ADMIN,
     };
 
 public: