fix(electron): download tip (#3711)
This commit is contained in:
@@ -70,12 +70,16 @@ export const guideOnboardingAtom = atom<
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
export const guideDownloadClientTipAtom = atom<
|
export const guideDownloadClientTipAtom = atom<
|
||||||
Guide['downloadClientTip'],
|
Guide['downloadClientTip'],
|
||||||
[open: boolean],
|
[open: boolean],
|
||||||
void
|
void
|
||||||
>(
|
>(
|
||||||
get => {
|
get => {
|
||||||
|
if (environment.isDesktop) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return get(guidePrimitiveAtom).downloadClientTip;
|
return get(guidePrimitiveAtom).downloadClientTip;
|
||||||
},
|
},
|
||||||
(_, set, open) => {
|
(_, set, open) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user