settings: provide a way to use alternative location for configuration file
..and whole data folder.
This commit is contained in:
@@ -538,7 +538,9 @@ void Browser::ChangeBrowseMode()
|
||||
|
||||
itsBrowseLocally = !itsBrowseLocally;
|
||||
ShowMessage("Browse mode: %s", itsBrowseLocally ? "Local filesystem" : "MPD music dir");
|
||||
itsBrowsedDir = itsBrowseLocally ? home_path : "/";
|
||||
itsBrowsedDir = itsBrowseLocally ? Config.GetHomeDirectory() : "/";
|
||||
if (itsBrowseLocally && *itsBrowsedDir.rbegin() == '/')
|
||||
itsBrowsedDir.resize(itsBrowsedDir.length()-1);
|
||||
w->Reset();
|
||||
GetDirectory(itsBrowsedDir);
|
||||
RedrawHeader = 1;
|
||||
|
||||
Reference in New Issue
Block a user