-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup Sandboxie-Plus.ini configuration #2234
Conversation
Fix #2231 Fix the issue that BoxCollapsedView is not refreshed in time when groups are renamed and deleted.
Fix #2231 When creating groups nested within groups, m_Groups.append ran twice and now removes a value.
Fix #2231 OldValue should be the underlined version, which should be in the same format as m_Groups Value. Otherwise OldValue can never be found in m_Groups. Fix BoxDisplayOrder not being refreshed in time when renaming and deleting sandbox operations.
Delete cleans up old data when the sandbox is renamed. I hope to delete or refuse to write Size by default when m_TotalSize is 0. This avoids extra cleanup work. Fix #2231
Disable the use of these characters for the Box Group name, which can cause some exceptions.
c19bda4 Explicitly deleting SizeCache entries is an improvement, but it does not handle the case where a box is deleted manually from the ini or using the old classic ui. Sandboxie/SandboxiePlus/SandMan/SandMan.cpp Line 1600 in e5d1fab
such that on start/connect once we have a list of all existing boxes we purge the size cache. I'll add this to the next build
|
@DavidXanatos
I don't understand here, is that meant? a8cdb40 |
这里还有一些问题,关闭统计后SizeCache依旧存在,但是Value已经不再更新。 There are still some problems here, after closing Count the SizeCache still exists, but the Value is no longer updated. |
I merged the changes and fixed a few things that did not seam right, also added an improved handling of the size cache |
@DavidXanatos In PRs like this one, I would advise in the next future to use the "Squash and merge" type of merging instead of the traditional "Create a merge commit": The first one is more chaotic when there is a certain number of commits in the same PR. |
foreach(const QString & Key, theConf->ListKeys("SizeCache")) {
if (!AllBoxes.contains(Key.toLower()))
theConf->DelValue("SizeCache/" + Key);
} When the WatchBoxSize is modified, the handling should change here. For example: if (theConf->GetBool("Options/WatchBoxSize", false)) {
foreach(const QString & Key, theConf->ListKeys("SizeCache")) {
if (!AllBoxes.contains(Key.toLower()))
theConf->DelValue("SizeCache/" + Key);
}
}
else {
theConf->DelValue("SizeCache");
} |
I'll go with
|
Fix #2231