forked from Public/monero-gui
Merge pull request #2133
cb4a9da RightPanel: cleanup from repo (selsta)
This commit is contained in:
29
main.qml
29
main.qml
@@ -53,7 +53,6 @@ ApplicationWindow {
|
||||
property bool hideBalanceForced: false
|
||||
property bool whatIsEnable: false
|
||||
property bool ctrlPressed: false
|
||||
property bool rightPanelExpanded: false
|
||||
property bool osx: false
|
||||
property alias persistentSettings : persistentSettings
|
||||
property var currentWallet;
|
||||
@@ -1063,7 +1062,6 @@ ApplicationWindow {
|
||||
function enableUI(enable) {
|
||||
middlePanel.enabled = enable;
|
||||
leftPanel.enabled = enable;
|
||||
rightPanel.enabled = enable;
|
||||
}
|
||||
|
||||
function showProcessingSplash(message) {
|
||||
@@ -1178,13 +1176,6 @@ ApplicationWindow {
|
||||
checkUpdates();
|
||||
}
|
||||
|
||||
onRightPanelExpandedChanged: {
|
||||
if (rightPanelExpanded) {
|
||||
rightPanel.updateTweets()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Settings {
|
||||
id: persistentSettings
|
||||
property string language
|
||||
@@ -1437,7 +1428,6 @@ ApplicationWindow {
|
||||
State {
|
||||
name: "wizard"
|
||||
PropertyChanges { target: leftPanel; visible: false }
|
||||
PropertyChanges { target: rightPanel; visible: false }
|
||||
PropertyChanges { target: middlePanel; visible: false }
|
||||
PropertyChanges { target: wizard; visible: true }
|
||||
PropertyChanges { target: resizeArea; visible: true }
|
||||
@@ -1446,7 +1436,6 @@ ApplicationWindow {
|
||||
}, State {
|
||||
name: "normal"
|
||||
PropertyChanges { target: leftPanel; visible: (isMobile)? false : true }
|
||||
PropertyChanges { target: rightPanel; visible: true }
|
||||
PropertyChanges { target: middlePanel; visible: true }
|
||||
PropertyChanges { target: titleBar; basicButtonVisible: true }
|
||||
PropertyChanges { target: wizard; visible: false }
|
||||
@@ -1591,14 +1580,6 @@ ApplicationWindow {
|
||||
}
|
||||
}
|
||||
|
||||
RightPanel {
|
||||
id: rightPanel
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
width: appWindow.rightPanelExpanded ? 300 : 0
|
||||
visible: appWindow.rightPanelExpanded
|
||||
}
|
||||
|
||||
|
||||
MiddlePanel {
|
||||
id: middlePanel
|
||||
@@ -1642,7 +1623,7 @@ ApplicationWindow {
|
||||
// value: 326
|
||||
// }
|
||||
PropertyAction {
|
||||
targets: [leftPanel, rightPanel]
|
||||
target: leftPanel
|
||||
properties: "visible"
|
||||
value: false
|
||||
}
|
||||
@@ -1660,7 +1641,6 @@ ApplicationWindow {
|
||||
|
||||
onStopped: {
|
||||
// middlePanel.visible = false
|
||||
rightPanel.visible = false
|
||||
leftPanel.visible = false
|
||||
}
|
||||
}
|
||||
@@ -1678,17 +1658,12 @@ ApplicationWindow {
|
||||
value: false
|
||||
}
|
||||
PropertyAction {
|
||||
targets: [leftPanel, middlePanel, rightPanel, resizeArea]
|
||||
targets: [leftPanel, middlePanel, resizeArea]
|
||||
properties: "visible"
|
||||
value: true
|
||||
}
|
||||
// PropertyAction {
|
||||
// target: appWindow
|
||||
// properties: "width"
|
||||
// value: rightPanelExpanded ? 1269 : 1269 - 300
|
||||
// }
|
||||
// PropertyAction {
|
||||
// target: appWindow
|
||||
// properties: "height"
|
||||
// value: maxWindowHeight
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user