- rename Network widget to Speed

This commit is contained in:
Serhiy Mytrovtsiy
2020-08-06 21:27:56 +02:00
parent fc160be142
commit 74413ea0f8
7 changed files with 27 additions and 22 deletions

View File

@@ -62,6 +62,11 @@
<string>51383185408,198466408448</string>
</dict>
</dict>
<key>speed</key>
<dict>
<key>Default</key>
<false/>
</dict>
</dict>
</dict>
</plist>

View File

@@ -8,7 +8,7 @@
<true/>
<key>Widgets</key>
<dict>
<key>network</key>
<key>speed</key>
<dict>
<key>Default</key>
<true/>

View File

@@ -129,7 +129,7 @@ public class Network: Module {
}
self.popupView.usageCallback(value!)
if let widget = self.widget as? NetworkWidget {
if let widget = self.widget as? SpeedWidget {
widget.setValue(upload: value!.upload, download: value!.download)
}
}