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:
parent
f8252108aa
commit
bd24c14625
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user