forked from qt-creator/qt-creator
Restrict Python application wizards to desktop
Fixes: QTCREATORBUG-28258 Change-Id: I9814abe093efbff0b7b15711d4773c8cbcdc8e41 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
"trDisplayCategory": "Application (Qt for Python)",
|
"trDisplayCategory": "Application (Qt for Python)",
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"iconKind": "Themed",
|
"iconKind": "Themed",
|
||||||
"enabled": "%{JS: value('Plugins').indexOf('Python') >= 0}",
|
"enabled": "%{JS: value('Plugins').indexOf('Python') >= 0 && (!value('Platform').length || ['Desktop', 'DockerDeviceType', 'GenericLinuxOsType'].includes(value('Platform')))}",
|
||||||
|
|
||||||
"options":
|
"options":
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"trDisplayCategory": "Application (Qt for Python)",
|
"trDisplayCategory": "Application (Qt for Python)",
|
||||||
"icon": "../icons/icon.png",
|
"icon": "../icons/icon.png",
|
||||||
"iconKind": "Themed",
|
"iconKind": "Themed",
|
||||||
"enabled": "%{JS: value('Plugins').indexOf('Python') >= 0}",
|
"enabled": "%{JS: value('Plugins').indexOf('Python') >= 0 && (!value('Platform').length || ['Desktop', 'DockerDeviceType', 'GenericLinuxOsType'].includes(value('Platform')))}",
|
||||||
|
|
||||||
"options":
|
"options":
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"trDisplayCategory": "Application (Qt for Python)",
|
"trDisplayCategory": "Application (Qt for Python)",
|
||||||
"icon": "../icons/icon.png",
|
"icon": "../icons/icon.png",
|
||||||
"iconKind": "Themed",
|
"iconKind": "Themed",
|
||||||
"enabled": "%{JS: value('Plugins').indexOf('Python') >= 0}",
|
"enabled": "%{JS: value('Plugins').indexOf('Python') >= 0 && (!value('Platform').length || ['Desktop', 'DockerDeviceType', 'GenericLinuxOsType'].includes(value('Platform')))}",
|
||||||
|
|
||||||
"options":
|
"options":
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"trDisplayCategory": "Application (Qt for Python)",
|
"trDisplayCategory": "Application (Qt for Python)",
|
||||||
"icon": "../icons/icon.png",
|
"icon": "../icons/icon.png",
|
||||||
"iconKind": "Themed",
|
"iconKind": "Themed",
|
||||||
"enabled": "%{JS: value('Plugins').indexOf('Python') >= 0}",
|
"enabled": "%{JS: value('Plugins').indexOf('Python') >= 0 && (!value('Platform').length || ['Desktop', 'DockerDeviceType', 'GenericLinuxOsType'].includes(value('Platform')))}",
|
||||||
|
|
||||||
"options":
|
"options":
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"trDisplayCategory": "Application (Qt for Python)",
|
"trDisplayCategory": "Application (Qt for Python)",
|
||||||
"icon": "../icons/icon.png",
|
"icon": "../icons/icon.png",
|
||||||
"iconKind": "Themed",
|
"iconKind": "Themed",
|
||||||
"enabled": "%{JS: value('Plugins').indexOf('Python') >= 0}",
|
"enabled": "%{JS: value('Plugins').indexOf('Python') >= 0 && (!value('Platform').length || ['Desktop', 'DockerDeviceType', 'GenericLinuxOsType'].includes(value('Platform')))}",
|
||||||
|
|
||||||
"options":
|
"options":
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user