John Lewin
312f652bbb
Use short identifiers for public profiles
...
- Add support for new GetProfileList schema
- Add CacheablePath function to abstract and reuse path generation logic
- Serialize LoadCacheable content in human readable form
- Move public-profile cache into like named folder
- Move public-profile items into oem specific folders
- Reuse LoadOemProfileAsync for persistence instead of custom implementation
- Issues MatterHackers/MCWS#72 , MatterHackers/MCWS#84
2016-09-03 17:12:11 -07:00
John Lewin
938c4c2267
Skip save operation when on the EmptyProfile
...
- Fixes regression in MorePauseHandlingStreamTests
2016-08-31 18:49:29 -07:00
John Lewin
98c26d0a7c
Add locking around file save operations
2016-08-31 13:57:43 -07:00
Lars Brubaker
22bca53d69
Changed the theme colors to save by name
...
fixed linux run bug MatterHackers/MCCentral#344
ActiveTheme does not recreate its data all the time
2016-08-31 11:42:02 -07:00
John Lewin
b498f80254
Fall back to dummy profile to assist Delete operations as last resort
2016-08-12 13:29:22 -07:00
John Lewin
70899bbedf
Prevent unhandled exceptions when indexing into OemProfiles
...
- Return null on caught exceptions
- Issue MatterHackers/MatterControl#1285
2016-08-12 13:29:22 -07:00
John Lewin
e7b82a47e4
Improve history recovery, try up to the last 5 history items
2016-08-12 13:29:22 -07:00
John Lewin
3bc253a3fe
Migrate recovery logic from PrinterSettings.LoadFile to PrinterSettings.RecoverProfile
2016-08-12 13:29:22 -07:00
Matt Moening
5b8ff5cd29
Changed TryGetValue to ContainsKey for clarity
2016-08-11 13:01:34 -07:00
Matt Moening
bdf3e8f2a5
Importing a printer/settings from a file will now notify the user if the file contains no valid user settings
...
- ImportFomEisting now returns a bool of whether or not it succeeded
- PrinterSettings now has a Contains method
- merging or importing quality/material settings check to make sure at least one setting was importable and notifies user if not
2016-08-10 16:39:08 -07:00
John Lewin
e29bf11631
Skip migrations if DocumentVersion missing
...
- Disable old migrations
- Issue MatterHackers/MCCentral#252
2016-08-04 08:57:14 -07:00
John Lewin
43e94f6ed4
DownloadPrinterProfile should return an instance of PrinterSettings
...
- Persistence of profile moves to caller
- Rename to GetPrinterProfileAsync
- Expose PrinterSettings.Save for use in external assemblies
- Issue MatterHackers/MCCentral#227 , MatterHackers/MCCentral#242
2016-07-28 09:46:12 -07:00
John Lewin
4d0fb6e67c
Revise Oem settings tests
...
- Remove no longer necessary LayerInfo class
- Remove now redundant MaterialLayers, QualityLayers properties
- Remove ConfigIni property
- Remove unused functions
- Refactor tests to receive a PrinterSettings param
2016-07-20 18:32:17 -07:00
John Lewin
98ee008046
Improve comments to better describe behavior
2016-07-20 18:31:20 -07:00
Matt Moening
d96531152b
converted oemprofiles to be .printer files and to be retrieved as such from various locations.
...
Updated to test to reflect the actions actually done by the request (not sure why they were not failing before)
2016-07-20 17:39:19 -07:00
johnlewin
edc7e13f3b
Merge pull request #1135 from gregory-diaz/master
...
Added the ability for users to load the last usable profile in their profile history in the event that their current profile is corrupt. Also added the ability to load a public profile in the event that a guest profile is corrupt.
2016-07-20 12:34:30 -07:00
Greg
e6a6abee72
Added the ability for users to load the last usable profile in their profile history in the event that their current profile is corrupt. Also added the ability to load a public profile in the event that a guest profile is corrupt.
2016-07-19 17:21:59 -07:00
Greg
e4c30c80ca
Added ability to recover from errors encountered when trying to load corrupted user and guest profiles.
2016-07-19 15:29:47 -07:00
Lars Brubaker
e5c617024a
Merge branch 'master' of https://github.com/MatterHackers/MatterControl
2016-07-19 13:29:04 -07:00
Lars Brubaker
451626504e
Renamed SettingsProflie to SettingsHelpers
2016-07-19 13:28:10 -07:00
Greg
b08cb616e9
refactored recover user profile code so that it works with the changes to PrinterSettings that were pushed yesterday.
2016-07-19 13:27:20 -07:00
Matt Moening
8789c4681e
Printer Settings defaults DocumentVersion to the lastest
...
Serializing Printer setting now Ignores Helpers and PrinterSelected
2016-07-19 12:50:04 -07:00
John Lewin
215a27f79c
Revert back to lazy loaded KnownSettings
2016-07-18 18:24:01 -07:00
John Lewin
80dab6c9e8
Make PrintLevelingChange event static
...
- Cleanup namespaces
- Guard for null reference with null conditional invoke
2016-07-18 16:58:25 -07:00
John Lewin
85b2ddefc3
Rename PrintLevelingEnabled event
2016-07-18 16:58:25 -07:00
John Lewin
54d165d15f
Consolidate member names
2016-07-18 16:58:25 -07:00
John Lewin
42f133aa70
Consolidate SettingsProfile and PrinterSettings types
2016-07-18 16:58:25 -07:00