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:
İlyas 2026-04-02 13:37:45 +03:00 committed by GitHub
parent 4714fe8795
commit ffe9bb851a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -326,7 +326,7 @@ Singleton {
const provider = {
displayName: p.displayName,
enabled: p.enabled,
iface: p.iface,
interface: p.iface,
name: p.name
};
if (p.connectCmd && p.connectCmd.length > 0) {

View file

@ -77,7 +77,8 @@ QtObject {
h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909);
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), () => {
notif.image = cache;
notif.dummyImageLoader.active = false;