forked from Ninjalama/streamyfin_mirror
Stop cleaning cache directory from showing as toast
This commit is contained in:
@@ -155,10 +155,6 @@ export const HomeIndex = () => {
|
||||
setIsConnected(state.isConnected);
|
||||
});
|
||||
|
||||
// cleanCacheDirectory().catch((e) =>
|
||||
// console.error("Something went wrong cleaning cache directory")
|
||||
// );
|
||||
|
||||
return () => {
|
||||
unsubscribe();
|
||||
};
|
||||
|
||||
@@ -438,7 +438,6 @@ function useDownloadProvider() {
|
||||
await FileSystem.makeDirectoryAsync(APP_CACHE_DOWNLOAD_DIRECTORY, {
|
||||
intermediates: true,
|
||||
});
|
||||
toast.success(t("Cache directory has been cleaned."));
|
||||
} catch (_error) {
|
||||
toast.error(t("Failed to clean cache directory."));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user