summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2019-01-01 09:07:53 +0100
committerPapoteur <papoteur@mageia.org>2019-01-01 12:10:10 +0100
commitb529a8218938384bb9c51f784ab301f0bca0d296 (patch)
tree38ed1264e90ab2716198e19662508dcc02d28a5c /qml
parent5b8192657e5c07963c6769d02e49055c11b08ec2 (diff)
downloadmageiawelcome-b529a8218938384bb9c51f784ab301f0bca0d296.tar
mageiawelcome-b529a8218938384bb9c51f784ab301f0bca0d296.tar.gz
mageiawelcome-b529a8218938384bb9c51f784ab301f0bca0d296.tar.bz2
mageiawelcome-b529a8218938384bb9c51f784ab301f0bca0d296.tar.xz
mageiawelcome-b529a8218938384bb9c51f784ab301f0bca0d296.zip
Check application installable in real time, not stored
Diffstat (limited to 'qml')
-rw-r--r--qml/mageiawelcome.py2
-rw-r--r--qml/mw-ui.qml6
2 files changed, 3 insertions, 5 deletions
diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py
index dfe6998..b5e13da 100644
--- a/qml/mageiawelcome.py
+++ b/qml/mageiawelcome.py
@@ -169,7 +169,7 @@ if __name__ == '__main__':
view.rootContext().setContextProperty('launch', la)
view.rootContext().setContextProperty('user', us)
view.rootContext().setContextProperty('ConfList', cl)
- view.rootContext().setContextProperty('installable', ins)
+ view.rootContext().setContextProperty('pyinstallable', ins)
view.rootContext().setContextProperty('startupcheck', sc)
view.rootContext().setContextProperty('norun', nr)
current_path = os.path.abspath(os.path.dirname(__file__))
diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml
index f73315a..105f83f 100644
--- a/qml/mw-ui.qml
+++ b/qml/mw-ui.qml
@@ -474,8 +474,6 @@ Rectangle {
for( var i = 0;i < rowCount;i++ )
{
var entry = appList.get(i);
- entry.installable = installable.installable(entry.name, entry.inst_repo)
- console.log(entry.name, entry.inst_repo, entry.installable)
var pattern = new RegExp(group, "g");
if(pattern.test(entry.group) ) {
appListDM.items.insert(entry, "group");
@@ -483,6 +481,7 @@ Rectangle {
}
appListDM.filterOnGroup = "items";
}
+
Rectangle {
property var title: qsTr("Applications")
width: view.width; height: view.height
@@ -586,7 +585,6 @@ Rectangle {
{
var entry = appList.get(i);
var pattern = /featured/g;
- entry.installable = installable.installable(entry.name, entry.inst_repo)
if(pattern.test(entry.group) ) {
items.insert(entry, "group");
}
@@ -661,7 +659,7 @@ Rectangle {
color: "white"
}
}
- sourceComponent: (installable === "True") ? button : (command === "" ? dummy : launcher)
+ sourceComponent: ( pyinstallable.installable(name, inst_repo)) ? button : (command === "" ? dummy : launcher)
}
Loader {