Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Add description attribute to packages11.xml #101

Merged
merged 4 commits into from
Jan 9, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ name: 'CI'

on:
push:
branches: [ main ]
branches:
- main
pull_request:
branches:
- main

jobs:
build:
Expand Down
12 changes: 10 additions & 2 deletions src/TIW11/Resources/data/packages11.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
<App id="ShareX.ShareX" name="ShareX"/>
<App id="SumatraPDF.SumatraPDF" name="SumatraPDF"/>
<App id="VideoLAN.VLC" name="VLC MediaPlayer"/>
<App id="9N4P75DXL6FG" name="WSATools"/>
<App
id="9N4P75DXL6FG"
name="WSATools"
description="Easy-to-use APK installer and more for Windows Subsystem for Android"
/>
</Category>
<Category name="Best apps for Windows 11">
<App id="Microsoft.PowerToys" name="PowerToys"/>
Expand Down Expand Up @@ -45,7 +49,11 @@
<App id="Audacity.Audacity" name="Audacity"/>
<App id="XBMCFoundation.Kodi" name="Kodi"/>
<App id="VideoLAN.VLC" name="VLC MediaPlayer"/>
<App id="yt-dlg.yt-dlg" name="yt-dlg"/>
<App
id="yt-dlg.yt-dlg"
name="yt-dlg"
description="A cross platform front-end GUI of the popular youtube-dl written in wxPython."
/>
</Category>

<Category name="File Archivers">
Expand Down
1 change: 1 addition & 0 deletions src/TIW11/Views/PackagesWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions src/TIW11/Views/PackagesWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,19 @@ private void IntializePackages(TreeView treeview)
moduleNode.Nodes.Add(categories.Attribute("name").Value);
foreach (XElement category in categories.Descendants("App"))
{
TreeNode node;
if (category.Attribute("id") != null) {
categoriesNode.Nodes.Add(category.Attribute("id").Value, category.Attribute("name").Value);
node = categoriesNode.Nodes.Add(category.Attribute("id").Value, category.Attribute("name").Value);
}
else
{
categoriesNode.Nodes.Add(category.Attribute("name").Value);
}
node = categoriesNode.Nodes.Add(category.Attribute("name").Value);
}

if (category.Attribute("description") != null)
{
node.ToolTipText = category.Attribute("description").Value;
}
}
}
}
Expand Down