Skip to content

Commit 990b6ab

Browse files
committed
[FlashpointManager] Remove redundant initialization code
1 parent 7227b29 commit 990b6ab

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

FlashpointManager/src/Common.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public static TreeNode AddNodeToList(XmlNode child, TreeNodeCollection parent)
262262
}
263263

264264
// Refreshes component lists and tracker objects with up-to-date information
265-
public static void SyncManager(bool init = false)
265+
public static void SyncManager()
266266
{
267267
ComponentTracker.Downloaded.Clear();
268268
ComponentTracker.Outdated.Clear();
@@ -289,7 +289,7 @@ public static void SyncManager(bool init = false)
289289
else
290290
{
291291
if (OfflineMode) node.ForeColor = Color.FromArgb(255, 96, 96, 96);
292-
if (init) node.Checked = node.Checked;
292+
if (!Ready) node.Checked = node.Checked;
293293
}
294294
});
295295

FlashpointManager/src/Forms/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private void Main_Load(object sender, EventArgs e)
3636
}
3737
}
3838

39-
FPM.SyncManager(true);
39+
FPM.SyncManager();
4040
ComponentList.BeforeCheck += ComponentList_BeforeCheck;
4141

4242
if (FPM.AutoDownload.Count > 0)

0 commit comments

Comments
 (0)