[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [gcompris] src/core: menu, no more display the download welcome dialog if download is disabled
From:       Bruno Coudoin <bruno.coudoin () gcompris ! net>
Date:       2016-08-07 13:57:07
Message-ID: E1bWOZf-0004Ei-5c () code ! kde ! org
[Download RAW message or body]

Git commit d409c08b401026c4ab164414ff1e129ccbae9f4c by Bruno Coudoin.
Committed on 07/08/2016 at 13:03.
Pushed by bcoudoin into branch 'master'.

menu, no more display the download welcome dialog if download is disabled

This dialog was only shown on first start.

M  +3    -1    src/core/main.qml

http://commits.kde.org/gcompris/d409c08b401026c4ab164414ff1e129ccbae9f4c

diff --git a/src/core/main.qml b/src/core/main.qml
index c02c0ff..7f138cb 100644
--- a/src/core/main.qml
+++ b/src/core/main.qml
@@ -159,7 +159,9 @@ Window {
                     + ", dpi=" + Math.round(Screen.pixelDensity*25.4)
                     + ", sharedWritablePath=" + ApplicationInfo.getSharedWritablePath()
                     + ")");
-        if (ApplicationSettings.exeCount === 1 && !ApplicationSettings.isKioskMode) {
+        if (ApplicationSettings.exeCount === 1 &&
+                !ApplicationSettings.isKioskMode &&
+                ApplicationInfo.isDownloadAllowed) {
             // first run
             var dialog;
             dialog = Core.showMessageDialog(

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic