diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
commit | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (patch) | |
tree | c85d72f6f31f21f178069c9d41d41a7c1ff4b362 /kde-misc/plasma-applet-network-monitor/files | |
parent | 0706fc6986773f4e4d391deff4ad5143c464ea4e (diff) |
gentoo resync : 05.04.2019
Diffstat (limited to 'kde-misc/plasma-applet-network-monitor/files')
2 files changed, 85 insertions, 0 deletions
diff --git a/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-crashfix-startuptime.patch b/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-crashfix-startuptime.patch new file mode 100644 index 000000000000..c86932757a33 --- /dev/null +++ b/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-crashfix-startuptime.patch @@ -0,0 +1,63 @@ +From 7aa094a156914aac5d1ac85967f9063bc6faa61e Mon Sep 17 00:00:00 2001 +From: Michail Vourlakos <mvourlakos@gmail.com> +Date: Tue, 7 Feb 2017 22:03:29 +0200 +Subject: [PATCH] fix crash and imrove startup time + +--fix crash because the repeater can not catch up +with the model changes during startup +--this also improves a lot the start up loading as +the visuals are painted only when the component +has completed its initialization phase +--- + package/contents/ui/main.qml | 17 +++++++++++++---- + 1 file changed, 13 insertions(+), 4 deletions(-) + +diff --git a/package/contents/ui/main.qml b/package/contents/ui/main.qml +index d781266..4ba4b5a 100644 +--- a/package/contents/ui/main.qml ++++ b/package/contents/ui/main.qml +@@ -24,6 +24,7 @@ Item { + id: main + + // general settings ++ property bool inStart: true + property bool showLo: plasmoid.configuration.showLo + property bool showDdWrt: plasmoid.configuration.showDdWrt + property double updateInterval: plasmoid.configuration.updateInterval * 1000 +@@ -155,7 +156,8 @@ Item { + } + + Component.onCompleted: { +- reloadComponent() ++ reloadComponent(); ++ inStart = false; + } + + function reloadComponent() { +@@ -232,8 +234,15 @@ Item { + setItemSize() + } + +- onShowLoChanged: devicesChanged() +- onShowDdWrtChanged: devicesChanged() ++ onShowLoChanged: { ++ if (!inStart) ++ devicesChanged(); ++ } ++ ++ onShowDdWrtChanged: { ++ if (!inStart) ++ devicesChanged(); ++ } + + GridLayout { + columns: gridColumns +@@ -247,7 +256,7 @@ Item { + Layout.preferredHeight: height + + Repeater { +- model: networkDevicesModel ++ model: inStart ? 0 : networkDevicesModel + delegate: ActiveConnection { + Layout.preferredWidth: itemWidth + Layout.preferredHeight: itemHeight diff --git a/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-ddwrt-icon.patch b/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-ddwrt-icon.patch new file mode 100644 index 000000000000..094900aff4ba --- /dev/null +++ b/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-ddwrt-icon.patch @@ -0,0 +1,22 @@ +From 70481c09ac1434ea1e72d89faeb5d9194463de4e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tomasz=20Przyby=C5=82?= <fademind@gmail.com> +Date: Mon, 18 Apr 2016 20:55:22 +0200 +Subject: [PATCH] fix dd-wrt icon visible against qt5.6 changes + +--- + package/contents/config/config.qml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/package/contents/config/config.qml b/package/contents/config/config.qml +index 5ebb5e6..b9e286a 100644 +--- a/package/contents/config/config.qml ++++ b/package/contents/config/config.qml +@@ -19,7 +19,7 @@ ConfigModel { + } + ConfigCategory { + name: i18n('DD-WRT') +- icon: Qt.resolvedUrl('../images/dd-wrt.png') ++ icon: Qt.resolvedUrl('../images/dd-wrt.png').replace('file://', '') + source: 'config/ConfigDDWRT.qml' + } + } |