aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/qml/wallet.qml
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-08 06:50:25 +0800
committerobscuren <geffobscura@gmail.com>2014-09-08 06:50:25 +0800
commit893e9256a0f48b8fd45f29717145a4df23a3a799 (patch)
tree297d4267f08ea9552e778d5d7bda1f3d9e8f89de /ethereal/assets/qml/wallet.qml
parent4e6defd6570dd213c53d73035e235431bb5408b5 (diff)
downloaddexon-893e9256a0f48b8fd45f29717145a4df23a3a799.tar.gz
dexon-893e9256a0f48b8fd45f29717145a4df23a3a799.tar.zst
dexon-893e9256a0f48b8fd45f29717145a4df23a3a799.zip
Some minor corrections
Diffstat (limited to 'ethereal/assets/qml/wallet.qml')
-rw-r--r--ethereal/assets/qml/wallet.qml31
1 files changed, 17 insertions, 14 deletions
diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml
index ed527ced7..0ddbd26bd 100644
--- a/ethereal/assets/qml/wallet.qml
+++ b/ethereal/assets/qml/wallet.qml
@@ -18,7 +18,7 @@ ApplicationWindow {
height: 600
minimumHeight: 300
- title: "Ether browser"
+ title: "Ethegate"
// This signal is used by the filter API. The filter API connects using this signal handler from
// the different QML files and plugins.
@@ -55,25 +55,28 @@ ApplicationWindow {
}
function addPlugin(path, options) {
- var component = Qt.createComponent(path);
- if(component.status != Component.Ready) {
- if(component.status == Component.Error) {
- console.debug("Error:"+ component.errorString());
+ try {
+ var component = Qt.createComponent(path);
+ if(component.status != Component.Ready) {
+ if(component.status == Component.Error) {
+ console.debug("Error:"+ component.errorString());
+ }
+
+ return
}
- return
- }
+ var views = mainSplit.addComponent(component, options)
+ views.menuItem.path = path
- var views = mainSplit.addComponent(component, options)
- views.menuItem.path = path
+ mainSplit.views.push(views);
- mainSplit.views.push(views);
+ if(!options.noAdd) {
+ gui.addPlugin(path)
+ }
- if(!options.noAdd) {
- gui.addPlugin(path)
+ return views.view
+ } catch(e) {
}
-
- return views.view
}
MenuBar {