File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,15 +109,9 @@ public AppContext() {
109109 this . timer = new Timer ( components ) ;
110110 timer . Tick += new EventHandler ( timer_Tick ) ;
111111 SetIsLightTheme ( ) ;
112-
113- // TODO: Looks like this is clearing custom durations. Need to look into this more.
114- // Settings.Default.Upgrade();
115- // Settings.Default.Save();
116112
117113 setIcons ( ) ;
118-
119114 this . notifyIcon = new NotifyIcon ( this . components ) ;
120-
121115 setContextMenu ( ) ;
122116
123117 // tooltip
@@ -128,17 +122,12 @@ public AppContext() {
128122 notifyIcon . MouseClick += new MouseEventHandler ( notifyIcon1_Click ) ;
129123
130124 if ( Settings . Default . ActivateAtLaunch )
131- {
132125 activate ( Settings . Default . DefaultDuration ) ;
133- }
134- else
135- {
126+ else
136127 deactivate ( ) ;
137- }
138- if ( Settings . Default . ShowSettingsAtLaunch )
139- {
128+
129+ if ( Settings . Default . ShowSettingsAtLaunch )
140130 showSettings ( ) ;
141- }
142131 }
143132
144133 void SetIsLightTheme ( ) {
@@ -263,9 +252,7 @@ public void setContextMenu() {
263252 new ToolStripMenuItem [ ] {
264253 settingsItem ,
265254 aboutItem ,
266- exitItem ,
267- // new ToolStripMenuItem("-"),
268- //activateForItem,
255+ exitItem
269256 }
270257 ) ;
271258 contextMenu . Items . Add ( new ToolStripSeparator ( ) ) ;
You can’t perform that action at this time.
0 commit comments