diff --git a/SandboxiePlus/SandMan/SbiePlusAPI.cpp b/SandboxiePlus/SandMan/SbiePlusAPI.cpp index 36db6fc9..17fb623b 100644 --- a/SandboxiePlus/SandMan/SbiePlusAPI.cpp +++ b/SandboxiePlus/SandMan/SbiePlusAPI.cpp @@ -236,11 +236,8 @@ void CSandBoxPlus::UpdateSize() void CSandBoxPlus::SetSize(quint64 Size) { - m_TotalSize = Size; - if (m_TotalSize == 0) - theConf->DelValue("SizeCache/" + m_Name); - else - theConf->SetValue("SizeCache/" + m_Name, Size); + m_TotalSize = Size; + theConf->SetValue("SizeCache/" + m_Name, Size); } bool CSandBoxPlus::IsSizePending() const diff --git a/SandboxiePlus/SandMan/Views/SbieView.cpp b/SandboxiePlus/SandMan/Views/SbieView.cpp index 35288de0..5469c69c 100644 --- a/SandboxiePlus/SandMan/Views/SbieView.cpp +++ b/SandboxiePlus/SandMan/Views/SbieView.cpp @@ -1215,7 +1215,6 @@ void CSbieView::OnSandBoxAction(QAction* Action, const QList& SandB if (!Status.IsError()) { RenameItem(OldValue, Value); - theConf->DelValue("SizeCache/" + OldValue); } Results.append(Status); }