usc.patch should not be saved when path is empty
|Assignee:||Miroslav Fidler||% Done:|
|Target version:||Release 2017.1|
Currently usc.patch file is saved always when user closes settings window. This behavior is not good, because it creates additional file in home directory (I always delete it :( ) that do nothing. So for people that don't use this feature (probably 98% of upp users) the file shouldn't be saved.
Simply solution is to add guard to (ide - Setup.cpp - line 509):
if(!String(~ide.uscpath).IsEmpty()) Upp::SaveFile(GetHomeDirFile("usc.path"), ~ide.uscpath);