From c0cd7f30039d7ad91428fed5ab212693f45fea9a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 21 Aug 2017 21:40:22 +0300 Subject: Tox: profile file to be removed when account is destroyed --- protocols/Tox/src/tox_proto.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/Tox/src/tox_proto.cpp') diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 0134ccfa58..5b05d878c2 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -226,6 +226,11 @@ int CToxProto::OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam) case EV_PROTO_ONMENU: return OnInitStatusMenu(); + + case EV_PROTO_ONERASE: + ptrW profilePath(GetToxProfilePath()); + _wunlink(profilePath); + break; } return 1; -- cgit v1.2.3