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
John Lewin
5fe1d0e225
Use naming consistent with return types & behavior
...
- Issue MatterHackers/MCCentral#4554
Remove Profile nomenclature from ProfileManager
2018-11-15 20:03:49 -08:00
John Lewin
6de4906ee9
Remove dead code
2018-11-15 20:03:49 -08:00
Lars Brubaker
0ddf1dee30
refactoring
2018-11-15 16:48:38 -08:00
Lars Brubaker
b740c2e351
Refactoring some class names and fields
2018-11-15 16:47:28 -08:00
John Lewin
4113a18436
CodeFactor cleanup
2018-11-15 15:06:47 -08:00
John Lewin
7148be8c25
Remove unnecessary closure
2018-11-15 14:51:08 -08:00
John Lewin
8b9f455b43
Release references
2018-11-15 14:51:08 -08:00
John Lewin
df719bee23
Invoke event before listeners are cleared in RemoveTab
2018-11-15 14:51:08 -08:00
John Lewin
8641837dce
Close tab and referenced widgets in RemoveTab
2018-11-15 14:51:08 -08:00
John Lewin
0f9e8a9b57
Clear CloseClicked listeners in OnClosed
2018-11-15 14:51:08 -08:00
John Lewin
9463311bf2
Release references and propagate Close to non-children widgets
2018-11-15 14:51:07 -08:00
John Lewin
59a16f53b5
Unregister scoped listeners via Closed event
2018-11-15 14:51:07 -08:00
John Lewin
7cea4f67ba
Resolve leak due to lambda, use existing listener
2018-11-15 14:51:06 -08:00