Skip to content

Commit

Permalink
Merge remote-tracking branch 'PR/pr/193' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaqueeee committed Nov 21, 2016
2 parents 6f2b45b + cca825b commit a5071c7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ ApplicationWindow {
property bool isNewWallet: false
property int restoreHeight:0
property bool daemonSynced: false
property int maxWindowHeight: (Screen.height < 900)? 720 : 800;

// true if wallet ever synchronized
property bool walletInitialized : false
Expand Down Expand Up @@ -617,15 +618,15 @@ ApplicationWindow {
objectName: "appWindow"
visible: true
width: rightPanelExpanded ? 1269 : 1269 - 300
height: 800
height: maxWindowHeight;
color: "#FFFFFF"
flags: Qt.FramelessWindowHint | Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint
onWidthChanged: x -= 0


Component.onCompleted: {
x = (Screen.width - width) / 2
y = (Screen.height - height) / 2
y = (Screen.height - maxWindowHeight) / 2
//
walletManager.walletOpened.connect(onWalletOpened);
walletManager.walletClosed.connect(onWalletClosed);
Expand Down Expand Up @@ -759,7 +760,7 @@ ApplicationWindow {
PropertyChanges { target: titleBar; basicButtonVisible: true }
PropertyChanges { target: wizard; visible: false }
PropertyChanges { target: appWindow; width: rightPanelExpanded ? 1269 : 1269 - 300; }
PropertyChanges { target: appWindow; height: 800; }
PropertyChanges { target: appWindow; height: maxWindowHeight; }
PropertyChanges { target: resizeArea; visible: true }
PropertyChanges { target: titleBar; maximizeButtonVisible: true }
PropertyChanges { target: frameArea; blocked: false }
Expand Down Expand Up @@ -921,7 +922,7 @@ ApplicationWindow {
NumberAnimation {
target: appWindow
properties: "height"
to: 800
to: maxWindowHeight
easing.type: Easing.InCubic
duration: 200
}
Expand Down

0 comments on commit a5071c7

Please sign in to comment.