diff --git a/src/MsgPopup.qml b/src/MsgPopup.qml index af2c3d9d..f09286a4 100644 --- a/src/MsgPopup.qml +++ b/src/MsgPopup.qml @@ -25,8 +25,10 @@ Popup { property bool quitButton: false property bool yesButton: false property bool noButton: false + property bool installGuideButton: false signal yes() signal no() + signal installGuide() background: Rectangle { color: UnColors.darkGray @@ -138,6 +140,15 @@ Popup { visible: msgpopup.quitButton } + ImButton { + text: qsTr("QUICK INSTALL GUIDE") + onClicked: { + msgpopup.installGuide() + } + font.family: roboto.name + visible: msgpopup.installGuideButton + } + Text { text: " " } } } diff --git a/src/main.qml b/src/main.qml index 8c720eac..d5ed68ad 100644 --- a/src/main.qml +++ b/src/main.qml @@ -99,7 +99,7 @@ ApplicationWindow { anchors.topMargin: 10 MouseArea { anchors.fill: parent - onClicked: imageWriter.openUrl("https://docs.unraid.net/unraid-os/getting-started/quick-install-guide/") + onClicked: imageWriter.openUrl("https://docs.unraid.net/go/quick-install-guide") } } @@ -108,7 +108,7 @@ ApplicationWindow { source: "unraid/icons/help_orange.svg" MouseArea { anchors.fill: parent - onClicked: imageWriter.openUrl("https://docs.unraid.net/unraid-os/getting-started/quick-install-guide/") + onClicked: imageWriter.openUrl("https://docs.unraid.net/go/quick-install-guide") } Layout.preferredHeight: 15 Layout.preferredWidth: 15 @@ -1363,6 +1363,9 @@ ApplicationWindow { onOpened: { forceActiveFocus() } + onInstallGuide: { + imageWriter.openUrl("https://docs.unraid.net/go/quick-install-guide") + } } MsgPopup { @@ -1528,8 +1531,11 @@ ApplicationWindow { } else { msgpopup.text = qsTr("%1 has been written to %2.").arg(osbutton.text).arg(dstbutton.text) - if(imageWriter.getInitFormat() === "UNRAID" && !imageWriter.windowsBuild()) { - msgpopup.text += qsTr("

If you would like to enable legacy boot (bios), helpful for old hardware, please run the 'make_bootable_(mac/linux/windows)' script from this computer, located in the main folder of the UNRAID flash drive.") + if(imageWriter.getInitFormat() === "UNRAID") { + if(!imageWriter.windowsBuild()) { + msgpopup.text += qsTr("

If you would like to enable legacy boot (bios), helpful for old hardware, please run the 'make_bootable_(mac/linux/windows)' script from this computer, located in the main folder of the UNRAID flash drive.") + } + msgpopup.installGuideButton = true } } if (imageWriter.isEmbeddedMode()) {