|
|
@ -420,19 +420,19 @@ ApplicationWindow { |
|
|
|
text: qsTr("Display gas estimation") |
|
|
|
shortcut: "Ctrl+G" |
|
|
|
checkable: true |
|
|
|
onTriggered: |
|
|
|
{ |
|
|
|
mainContent.codeEditor.displayGasEstimation(checked); |
|
|
|
} |
|
|
|
onTriggered: mainContent.codeEditor.displayGasEstimation(checked); |
|
|
|
} |
|
|
|
|
|
|
|
Action { |
|
|
|
id: optimizeCodeAction |
|
|
|
text: qsTr("Optimize contract code") |
|
|
|
text: qsTr("Enable optimized compilation") |
|
|
|
shortcut: "Ctrl+Shift+O" |
|
|
|
checkable: true |
|
|
|
checked: true |
|
|
|
Component.onCompleted: codeModel.setOptimizeCode(true); |
|
|
|
onTriggered: codeModel.setOptimizeCode(checked); |
|
|
|
} |
|
|
|
|
|
|
|
Settings { |
|
|
|
property alias gasEstimation: gasEstimationAction.checked |
|
|
|
property alias optimizeCode: optimizeCodeAction.checked |
|
|
|
} |
|
|
|
} |
|
|
|