Skip to content

Commit

Permalink
Fix storage loading error when ui wake up
Browse files Browse the repository at this point in the history
  • Loading branch information
NATSUME Hiroaki committed Jan 16, 2024
1 parent 38fd86c commit a71799f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Tunny/UI/OptimizeWindowTab/OptimizeTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,14 @@ private void OptimizeStopButton_Click(object sender, EventArgs e)

private void UpdateStudyComboBox()
{
UpdateStudyComboBox(_settings.Storage.Path);
try
{
UpdateStudyComboBox(_settings.Storage.Path);
}
catch (Exception)
{
TunnyMessageBox.Show("The storage file loading error.\nPlease check the storage path or use new storage file.", "Error");
}
}

private void UpdateStudyComboBox(string storagePath)
Expand Down

0 comments on commit a71799f

Please sign in to comment.