mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-10-22 07:08:53 +02:00
refactor: cleanup
This commit is contained in:
1 parent
1510c42ac9
commit
130cfda791
27 files changed
+962
-365
No files matched your search
@@ -518,7 +518,7 @@ function ExtCell({
|
||||
>
|
||||
<LuPuzzle className="size-3 shrink-0" />
|
||||
<span className="flex-1 truncate" title={label}>
|
||||
{label}
|
||||
{group?.name ?? "—"}
|
||||
</span>
|
||||
<LuChevronDown className="size-3 shrink-0 text-muted-foreground" />
|
||||
</button>
|
||||
|
||||
@@ -123,7 +123,14 @@ export function TrashPage({ isOpen, onClose, subPage }: TrashPageProps) {
|
||||
"restore_trashed_profile",
|
||||
{ profileId: entry.id },
|
||||
);
|
||||
showSuccessToast(t("trash.restored", { name: restored.name }));
|
||||
// The restore keeps sync off when the cloud still holds the
|
||||
// profile's tombstone; say so rather than let it look synced.
|
||||
const syncStayedOff =
|
||||
entry.sync_enabled && restored.sync_mode === "Disabled";
|
||||
showSuccessToast(t("trash.restored", { name: restored.name }), {
|
||||
description: syncStayedOff ? t("trash.restoredSyncOff") : undefined,
|
||||
duration: syncStayedOff ? 10000 : undefined,
|
||||
});
|
||||
} catch (err: unknown) {
|
||||
console.error("Failed to restore trashed profile:", err);
|
||||
showErrorToast(
|
||||
|
||||
Reference in new issue
Block a user