Remove hard-coded path
This commit is contained in:
parent
e33ceb62f1
commit
3059afd415
1 changed files with 8 additions and 1 deletions
|
|
@ -50,7 +50,14 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
|
|||
libraryProviders.Add(new LibraryProviderSQLite(null, this));
|
||||
|
||||
// and any directory providers (sd card provider, etc...)
|
||||
libraryProviders.Add(new LibraryProviderFileSystem(Path.Combine("C:\\", "Users", "LarsBrubaker", "Downloads"), "Downloads", this));
|
||||
//
|
||||
// Add "Downloads" file system example
|
||||
string downloadsDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
|
||||
if (Directory.Exists(downloadsDirectory))
|
||||
{
|
||||
libraryProviders.Add(new LibraryProviderFileSystem(downloadsDirectory, "Downloads", this));
|
||||
}
|
||||
|
||||
//#if __ANDROID__
|
||||
//libraryProviders.Add(new LibraryProviderFileSystem(ApplicationDataStorage.Instance.PublicDataStoragePath, "Downloads", this.ProviderKey));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue