| 113 | } |
| 114 | |
| 115 | void CTrayIconController::shortcut() |
| 116 | { |
| 117 | QString file = openDialog(); |
| 118 | if (file.isNull()) |
| 119 | return; |
| 120 | |
| 121 | QString args = file; |
| 122 | if (CReviveManifestController::SharedInstance()->UsingOpenXR()) |
| 123 | args.prepend("/openxr "); |
| 124 | |
| 125 | if (!WindowsServices::CreateShortcut(QStandardPaths::writableLocation(QStandardPaths::DesktopLocation) + "/" + QFileInfo(file).baseName() + ".lnk", |
| 126 | QCoreApplication::applicationDirPath() + "/ReviveInjector.exe", args, file)) |
| 127 | return; |
| 128 | |
| 129 | m_trayIcon->showMessage("Shortcut created on desktop", |
| 130 | "You can use this shortcut to launch the executable with Revive directly.", |
| 131 | QSystemTrayIcon::Information); |
| 132 | } |
| 133 | |
| 134 | void CTrayIconController::showHelp() |
| 135 | { |
nothing calls this directly
no test coverage detected