mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-10-20 06:28:19 +02:00
refactor: cleanup
This commit is contained in:
1 parent
7962e97474
commit
f05aaa2cf2
31 files changed
+432
-2305
No files matched your search
@@ -2048,6 +2048,7 @@ export default function Home() {
|
||||
let unlistenProgress: (() => void) | undefined;
|
||||
let unlistenCompleted: (() => void) | undefined;
|
||||
let unlistenWayfernBlocked: (() => void) | undefined;
|
||||
let unlistenGenerationLimit: (() => void) | undefined;
|
||||
let unlistenMcpLocalDeprecated: (() => void) | undefined;
|
||||
let unlistenMcpLocalMigrated: (() => void) | undefined;
|
||||
|
||||
@@ -2112,6 +2113,19 @@ export default function Home() {
|
||||
});
|
||||
});
|
||||
|
||||
unlistenGenerationLimit = await listen(
|
||||
"profile-generation-limit-reached",
|
||||
() => {
|
||||
showToast({
|
||||
id: "profile-generation-limit-reached",
|
||||
type: "error",
|
||||
title: t("profileGenerationLimit.title"),
|
||||
description: t("profileGenerationLimit.description"),
|
||||
duration: 15000,
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
unlistenWayfernBlocked = await listen("wayfern-paid-blocked", () => {
|
||||
showToast({
|
||||
id: "wayfern-paid-blocked",
|
||||
@@ -2160,6 +2174,7 @@ export default function Home() {
|
||||
unlistenProgress?.();
|
||||
unlistenCompleted?.();
|
||||
unlistenWayfernBlocked?.();
|
||||
unlistenGenerationLimit?.();
|
||||
unlistenMcpLocalDeprecated?.();
|
||||
unlistenMcpLocalMigrated?.();
|
||||
}
|
||||
@@ -2172,6 +2187,7 @@ export default function Home() {
|
||||
unlistenProgress?.();
|
||||
unlistenCompleted?.();
|
||||
unlistenWayfernBlocked?.();
|
||||
unlistenGenerationLimit?.();
|
||||
unlistenMcpLocalDeprecated?.();
|
||||
unlistenMcpLocalMigrated?.();
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user