Commit graph

651 commits

Author SHA1 Message Date
John Lewin
4016f0e4bb Make deprecated ActivePrinter return first open printer or Empty 2018-11-21 19:24:53 -08:00
John Lewin
1559e58e88 Convert static ImageBuffers to instances
- Issue MatterHackers/MCCentral#4585
Memory leak in ImageWidget when source image is static
2018-11-21 19:24:53 -08:00
John Lewin
ab82ad7a75 Use HoverImageWidget
- Issue MatterHackers/MCCentral#4585
Memory leak in ImageWidget when source image is static
2018-11-21 19:24:53 -08:00
John Lewin
4b0c28b489 Restore printer tabs
- Add missing code in accidental stash
2018-11-21 17:10:44 -08:00
John Lewin
cf1ba487c5 Fix null ref during print due to invalid reference
- Issue MatterHackers/MCCentral#4610
Disconnect after starting print
2018-11-21 12:22:36 -08:00
John Lewin
0789160653 Only Save if changed
- Reduce file in use exceptions
2018-11-21 12:22:36 -08:00
John Lewin
d57620bc00 CodeFactor fixes 2018-11-21 11:18:14 -08:00
John Lewin
9923e13ac6 Clean up state after Delete Printer action
- Ensure OpenPrinters lists are up-to-date
- Ensure ID changes get synced
- Notify listeners when UserChanged due to sign in/out
- Clear ActivePrinters on UserChanged
- Eliminate WaitForReloadAll in non-reload scenario
2018-11-21 11:12:50 -08:00
John Lewin
ba862715c7 Revise naming to clarify behavior 2018-11-21 11:12:50 -08:00
John Lewin
be1062e7d1 Remove invalid comments, note concerns 2018-11-21 11:12:50 -08:00
John Lewin
466431b7e9 Remove UserChanged method, collapse into ProfileManger.Load(userID) 2018-11-21 11:12:50 -08:00
John Lewin
0137413966 Ensure _activeProfileIDs initialized before use 2018-11-21 11:12:50 -08:00
John Lewin
4141c10e86 Remove dead code 2018-11-21 11:12:49 -08:00
John Lewin
178eff308e Revise refs and listeners so MainViewWidget finalizes after Close 2018-11-20 16:43:45 -08:00
John Lewin
ca5e25e0ed Ensure animation on update available 2018-11-20 16:40:12 -08:00
John Lewin
afeabf3f8a Always check for updates on startup
- Issue MatterHackers/MCCentral#4607
Clean install does not check for updates
2018-11-20 16:40:12 -08:00
John Lewin
34288ff48d Use auto property 2018-11-20 16:40:12 -08:00
John Lewin
2e1080f578 Simplify 2018-11-20 16:40:11 -08:00
John Lewin
2ccd0f9180 Refactor listener name 2018-11-20 16:40:11 -08:00
John Lewin
0e420fcc32 Remove invalid setter 2018-11-20 16:40:11 -08:00
John Lewin
f739107bd4 Simplify 2018-11-20 16:40:11 -08:00
John Lewin
18c15c62b7 Inline localizations 2018-11-20 16:40:11 -08:00
John Lewin
db15c85121 Eliminate SetInterval for animation, invoke when auto shown 2018-11-20 16:40:11 -08:00
John Lewin
4dbb2fee15 Extract animation helper to method 2018-11-20 12:02:29 -08:00
John Lewin
53ebb41469 Only rebuild if changed settings ID is this printer ID 2018-11-19 17:44:10 -08:00
John Lewin
c30eb13688 Fire ActiveProfileModifed on Save if printer is open, pass Settings 2018-11-19 17:43:23 -08:00
John Lewin
d0e0eae3a1 Remove ActivePrinter release
- Becomes unneccessary when property is removed (coming shortly)
2018-11-19 11:33:41 -08:00
Lars Brubaker
7b7efc1328 Make Connection OnIdle work for multiple printers
MatterHackers/MCCentral#4602
2018-11-16 17:02:05 -08:00
johnlewin
f35d4aaf7b
Merge branch 'master' into master 2018-11-16 16:23:06 -08:00
John Lewin
e954344416 CodeFactor cleanup 2018-11-16 16:12:48 -08:00
Lars Brubaker
cfdf796d92 Make sure we still auto connect
issue: MatterHackers/MCCentral#4601
Make AutoConnect work with new multiple open printer tabs
2018-11-16 16:05:16 -08:00
John Lewin
115abf3c4a Revise naming for clarity 2018-11-16 15:59:15 -08:00
John Lewin
8a908136e6 Consolidate duplicate SettingChanged listeners 2018-11-16 15:53:44 -08:00
John Lewin
97dc6aeb4b Make Connection reference readonly 2018-11-16 15:53:44 -08:00
John Lewin
1a4ac719c4 Extract local function event listeners to common format
- Move Disposed listener body to Dispose function
2018-11-16 15:53:44 -08:00
John Lewin
87ba5160bd Move listener registration into constructor 2018-11-16 15:53:44 -08:00
John Lewin
e2c50f166e Use Dispose method for unregister listeners 2018-11-16 15:53:44 -08:00
John Lewin
022a82bb27 Extract local function event listeners to common format 2018-11-16 15:53:44 -08:00
John Lewin
bbcc3018f6 Listen for SettingChanged and update profile name/port as needed
- Move behavior back into ProfileManager
- Issue MatterHackers/MCCentral#4600
Hardware tab not syncing name changes
2018-11-16 15:53:44 -08:00
John Lewin
a15c98ea42 Dispose previous ProfileManager instance before assigning new 2018-11-16 15:53:44 -08:00
John Lewin
65ff632681 Make ProfileManager Disposable 2018-11-16 15:53:44 -08:00
John Lewin
3fc65c18e1 Hook printer tab name updater to AnyPrinterSettingChanged 2018-11-16 15:53:44 -08:00
John Lewin
2873a74ef7 Use standard event listener pattern 2018-11-16 15:53:43 -08:00
Lars Brubaker
3e8b4bde56 Moved the cancel print logic into connection to ensure SD card print not canceled
removed Active Printer from RootSystemWindow and put in multi-printer logic

issue: MatterHackers/MCCentral#4599
RootSystemWindow OnClosing cancel printer logic remove active printer

issue: MatterHackers/MatterControl#3973
Mattercontrol interferes with SD card print
2018-11-16 14:45:22 -08:00
Lars Brubaker
f1786393cf Making sure that export does the right thing on G92
issue: MatterHackers/MCCentral#4596
Retracting filament at end of print
2018-11-16 14:24:36 -08:00
John Lewin
a1dc2cbaa6 CodeFactor cleanup 2018-11-16 05:12:34 -08:00
John Lewin
f49f216363 Clear Disposed listeners after invoking event 2018-11-15 21:22:58 -08:00
John Lewin
812677d178 Close non-child owned widget in OnClosed 2018-11-15 21:13:30 -08:00
John Lewin
06e79394f2 Unregister listeners on Printer.Disposed
- Issue MatterHackers/MCCentral#4589
Ensure all printer.Disposed calls unregister listeners
2018-11-15 21:01:01 -08:00
John Lewin
51b15e053b Unregister listeners on Close
- Issue MatterHackers/MCCentral#4588
Listeners not unregistered on Close
2018-11-15 20:03:53 -08:00