Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for exception #28

Merged
merged 5 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions VSLauncherX/MainDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,14 @@ private void SetupTaskbarTasks()
{
var cat = new JumpListCustomCategory("Test");
// Create a jump list.
this.TaskbarJumpList = JumpList.CreateJumpList();
try
{
this.TaskbarJumpList = JumpList.CreateJumpList();
}
catch (System.Exception ex)
{

}

RebuildTaskbarItems();
}
Expand Down Expand Up @@ -488,11 +495,13 @@ private void AddItemToTaskbar(VsItem item)
/// <param name="folder"></param>
private void RebuildTaskbarItems(VsFolder? folder = null)
{
if (folder is null)
if (this.TaskbarJumpList is null)
{
folder = this.solutionGroups;
return;
}

folder ??= this.solutionGroups;

// iterate through all items in SolutionItems and add the favorite items to the taskbar
foreach (VsItem item in folder.Items)
{
Expand Down
2 changes: 1 addition & 1 deletion VSLauncherX/VSLauncherX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

<ItemGroup>
<PackageReference Include="Google.Apis.Drive.v3" Version="1.61.0.3155" />
<PackageReference Include="LibGit2Sharp" Version="0.27.2" />
<PackageReference Include="LibGit2Sharp" Version="0.30.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Management" Version="7.0.2" />
<PackageReference Include="TaskScheduler" Version="2.10.1" />
Expand Down
Loading