diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-01-30 10:37:14 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-02-27 22:07:16 +0100 |
| commit | ebcab010bbf1eeaed0a0c734460a038bdbe374b8 (patch) | |
| tree | 1f30232e5a4ec0f97a37eec2eecb8e89c08f774d /main.qml | |
| parent | e826f7c1ecdcdc1e588e67b07278f7433cd867eb (diff) | |
| download | monzero-gui-ebcab010bbf1eeaed0a0c734460a038bdbe374b8.tar.gz monzero-gui-ebcab010bbf1eeaed0a0c734460a038bdbe374b8.tar.xz monzero-gui-ebcab010bbf1eeaed0a0c734460a038bdbe374b8.zip | |
Wizard: mobile redesign
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -67,6 +67,7 @@ ApplicationWindow { property int timeToUnlock: 0 property bool qrScannerEnabled: builtWithScanner && (QtMultimedia.availableCameras.length > 0) property int blocksToSync: 1 + property var isMobile: (appWindow.width > 700) ? false : true // true if wallet ever synchronized property bool walletInitialized : false @@ -191,7 +192,6 @@ ApplicationWindow { } walletManager.setDaemonAddress(persistentSettings.daemon_address) - // wallet already opened with wizard, we just need to initialize it if (typeof wizard.settings['wallet'] !== 'undefined') { console.log("using wizard wallet") @@ -237,6 +237,7 @@ ApplicationWindow { function connectWallet(wallet) { currentWallet = wallet + walletName = usefulName(wallet.path) updateSyncing(false) viewOnly = currentWallet.viewOnly; @@ -1137,7 +1138,7 @@ ApplicationWindow { } } - property int maxWidth: leftPanel.width + 655 + rightPanel.width + property int minWidth: 326 property int minHeight: 720 MouseArea { id: resizeArea @@ -1171,9 +1172,9 @@ ApplicationWindow { var dx = previousPosition.x - pos.x var dy = previousPosition.y - pos.y - if(appWindow.width - dx > parent.maxWidth) + if(appWindow.width - dx > parent.minWidth) appWindow.width -= dx - else appWindow.width = parent.maxWidth + else appWindow.width = parent.minWidth if(appWindow.height - dy > parent.minHeight) appWindow.height -= dy |
