Commit c45610f5 authored by LordTermor's avatar LordTermor Committed by LordTermor

Fixed updates page

parent 0fcb2b5f
......@@ -14,7 +14,6 @@ import "../../js/JSUtils.js" as JSUtils
Table{
property var packageList: []
showHeader: false
property alias packageListFuture:packageModelWatcher.future
model:modelLoader.item
Loader{
......@@ -39,14 +38,6 @@ Table{
}
}
property var watcher: FutureWatcher{
id:packageModelWatcher
onFinished: {
list.packageList = result;
}
}
Column{
......@@ -81,10 +72,6 @@ Table{
list.selectedRows = [];
view.contentY=0;
}
onPackageListFutureChanged: {
opacity = 0;
}
Behavior on opacity {
NumberAnimation{}
}
......
......@@ -4,7 +4,8 @@ import QtGraphicalEffects 1.0
import QPamac.Database 1.0
import QPamac.Package 1.0
import "../../js/JSUtils.js" as JSUtils
import "./" as PamacQt
import "../Components" as Components
import "../Components/SideMenu" as SideMenu
Page {
......@@ -23,7 +24,7 @@ Page {
height: implicitHeight
spacing: progressBar.enabled?10:-5
anchors.centerIn: parent
PamacQt.ProgressBar{
Components.ProgressBar{
id:progressBar
enabled: updates==undefined
height: enabled?5:0
......@@ -53,7 +54,7 @@ Page {
}
anchors.fill: parent
SideBar{
SideMenu.Drawer{
visible: updates!==undefined
states: [
State{
......@@ -95,7 +96,7 @@ Page {
}
delegate:MenuItemDelegate {
delegate:Components.MenuItemDelegate {
highlighted:updatesDrawerListView.currentIndex==index
text: name
enabled: enable
......@@ -106,7 +107,7 @@ Page {
}
}
}
PackageList{
Components.PackageList{
layer.enabled: true
layer.effect: DropShadow {
transparentBorder: true
......@@ -132,9 +133,10 @@ Page {
}
StackView.onActivating: {
sidePanel.state = "hidden";
}
StackView.onActivated: {
reset();
}
StackView.onDeactivating: {
sidePanel.state = "opened";
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment