Skip to content

Commit fd8b259

Browse files
committed
Clean up comments and formatting
1 parent 3e4a958 commit fd8b259

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

Program.cs

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)