fix: notif image and vpn serialisation (#1370)
* fix: serialize VPN interface name when configured via UI * fix: override last icon notification history * screw qmlls --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
This commit is contained in:
parent
4714fe8795
commit
ffe9bb851a
2 changed files with 3 additions and 2 deletions
|
|
@ -326,7 +326,7 @@ Singleton {
|
||||||
const provider = {
|
const provider = {
|
||||||
displayName: p.displayName,
|
displayName: p.displayName,
|
||||||
enabled: p.enabled,
|
enabled: p.enabled,
|
||||||
iface: p.iface,
|
interface: p.iface,
|
||||||
name: p.name
|
name: p.name
|
||||||
};
|
};
|
||||||
if (p.connectCmd && p.connectCmd.length > 0) {
|
if (p.connectCmd && p.connectCmd.length > 0) {
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,8 @@ QtObject {
|
||||||
h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909);
|
h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909);
|
||||||
const hash = (h2 >>> 0).toString(16).padStart(8, 0) + (h1 >>> 0).toString(16).padStart(8, 0);
|
const hash = (h2 >>> 0).toString(16).padStart(8, 0) + (h1 >>> 0).toString(16).padStart(8, 0);
|
||||||
|
|
||||||
const cache = Paths.notifimagecache + "/${hash}.png";
|
Paths; // Screw you qmlls
|
||||||
|
const cache = `${Paths.notifimagecache}/${hash}.png`;
|
||||||
CUtils.saveItem(this, Qt.resolvedUrl(cache), () => {
|
CUtils.saveItem(this, Qt.resolvedUrl(cache), () => {
|
||||||
notif.image = cache;
|
notif.image = cache;
|
||||||
notif.dummyImageLoader.active = false;
|
notif.dummyImageLoader.active = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue