aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-11 22:24:35 +0800
committerobscuren <geffobscura@gmail.com>2014-08-11 22:24:35 +0800
commitc59d7a899b0ca121b3f982fa12405629109f1b47 (patch)
tree1859ac54e0f9948927287caeae863b730eb1fbd9 /ethereal/assets
parentce8f24e57a3ba31d17c34db284bd3d9efa15e7d8 (diff)
downloaddexon-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.gz
dexon-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.zst
dexon-c59d7a899b0ca121b3f982fa12405629109f1b47.zip
Added open js option for repetitive tasks in ethereal
Diffstat (limited to 'ethereal/assets')
-rw-r--r--ethereal/assets/qml/wallet.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml
index e3ef148b0..e264d3f4c 100644
--- a/ethereal/assets/qml/wallet.qml
+++ b/ethereal/assets/qml/wallet.qml
@@ -63,6 +63,16 @@ ApplicationWindow {
txImportDialog.visible = true
}
}
+
+ MenuItem {
+ text: "Run JS file"
+ onTriggered: {
+ generalFileDialog.callback = function(path) {
+ eth.evalJavascriptFile(path)
+ }
+ generalFileDialog.open()
+ }
+ }
}
Menu {
@@ -452,6 +462,16 @@ ApplicationWindow {
onAccepted: {
}
}
+
+
+ FileDialog {
+ id: generalFileDialog
+ property var callback;
+ onAccepted: {
+ var path = this.fileUrl.toString()
+ callback.call(this, path)
+ }
+ }
FileDialog {
id: importDialog