1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-05 18:42:29 +01:00

Fix open item in workshop

This commit is contained in:
Elias Steurer 2021-08-19 17:41:34 +02:00
parent f8252108aa
commit bd24c14625

View File

@ -247,7 +247,7 @@ Item {
}
MenuItem {
text: qsTr("Deinstall Item")
text: enabled ? qsTr("Remove Item") : qsTr("Remove via Workshop")
icon.source: "qrc:/assets/icons/icon_delete.svg"
enabled: contextMenu.publishedFileID === 0
onClicked: {
@ -256,13 +256,12 @@ Item {
}
MenuItem {
id: miWorkshop
text: qsTr("Open workshop Page")
text: qsTr("Open Workshop Page")
enabled: contextMenu.publishedFileID !== 0
icon.source: "qrc:/assets/icons/icon_steam.svg"
onClicked: {
Qt.openUrlExternally("steam://url/CommunityFilePage/" + publishedFileID);
print(contextMenu.publishedFileID)
Qt.openUrlExternally("steam://url/CommunityFilePage/" + contextMenu.publishedFileID);
}
}