Bug #1404

usc.patch should not be saved when path is empty

Added by Zbigniew Rebacz about 8 years ago. Updated about 8 years ago.

Status:ApprovedStart date:04/05/2016
Priority:NormalDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:IDESpent time:-
Target version:Release 2017.1

Description

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);


Related issues

Duplicated by Bug #1085: usc.patch created after closing enviroment settings Approved 05/17/2015

History

#1 Updated by Zbigniew Rebacz about 8 years ago

  • Duplicated by Bug #1085: usc.patch created after closing enviroment settings added

#2 Updated by Miroslav Fidler about 8 years ago

  • Status changed from Patch ready to Approved

Also available in: Atom PDF