@@ -4,7 +4,7 @@ This Source Code Form is subject to the terms of the Mozilla Public
4
4
License, v. 2.0. If a copy of the MPL was not distributed with this
5
5
file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
7
- Copyright (C) 2009-2012 Michael Möller <[email protected] >
7
+ Copyright (C) 2009-2013 Michael Möller <[email protected] >
8
8
Copyright (C) 2010 Paul Werelds <[email protected] >
9
9
Copyright (C) 2012 Prince Samuel <[email protected] >
10
10
@@ -459,8 +459,7 @@ private void PlotSelectionChanged(object sender, EventArgs e) {
459
459
int colorIndex = 0 ;
460
460
foreach ( TreeNodeAdv node in treeView . AllNodes ) {
461
461
SensorNode sensorNode = node . Tag as SensorNode ;
462
- if ( sensorNode != null &&
463
- sensorNode . Sensor . SensorType == SensorType . Temperature ) {
462
+ if ( sensorNode != null ) {
464
463
if ( sensorNode . Plot ) {
465
464
colors . Add ( sensorNode . Sensor ,
466
465
plotColorPalette [ colorIndex % plotColorPalette . Length ] ) ;
@@ -484,9 +483,7 @@ private void nodeTextBoxText_EditorShowing(object sender,
484
483
private void nodeCheckBox_IsVisibleValueNeeded ( object sender ,
485
484
NodeControlValueEventArgs e ) {
486
485
SensorNode node = e . Node . Tag as SensorNode ;
487
- e . Value = ( node != null ) &&
488
- ( node . Sensor . SensorType == SensorType . Temperature ) &&
489
- plotMenuItem . Checked ;
486
+ e . Value = ( node != null ) && plotMenuItem . Checked ;
490
487
}
491
488
492
489
private void exitClick ( object sender , EventArgs e ) {
@@ -496,7 +493,7 @@ private void exitClick(object sender, EventArgs e) {
496
493
private void timer_Tick ( object sender , EventArgs e ) {
497
494
computer . Accept ( updateVisitor ) ;
498
495
treeView . Invalidate ( ) ;
499
- plotPanel . Invalidate ( ) ;
496
+ plotPanel . InvalidatePlot ( ) ;
500
497
systemTray . Redraw ( ) ;
501
498
if ( gadget != null )
502
499
gadget . Redraw ( ) ;
@@ -506,6 +503,7 @@ private void timer_Tick(object sender, EventArgs e) {
506
503
}
507
504
508
505
private void SaveConfiguration ( ) {
506
+ plotPanel . SetCurrentSettings ( ) ;
509
507
foreach ( TreeColumn column in treeView . Columns )
510
508
settings . SetValue ( "treeView.Columns." + column . Header + ".Width" ,
511
509
column . Width ) ;
0 commit comments