// Copyright (C) 2026 Danilo M. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import Quickshell import Quickshell.Io import QtQuick ShellRoot { MailPanel { id: panel } IpcHandler { target: "mail" function toggle() { panel.toggle(); } function show() { panel.show(); } function close() { panel.close(); } } // TEMPORARY probe for Task 3 verification. Removed in Step 5. Component.onCompleted: Qt.callLater(() => { console.log("ACCOUNTS", JSON.stringify(Accounts.accounts.map(a => a.key + ":" + a.label))); }) Connections { target: Accounts function onLoadingChanged() { if (!Accounts.loading) console.log("COUNTS", JSON.stringify(Accounts.accounts.map(a => a.label + "=" + a.count)), "total", Accounts.total); } } }