Skip to content

Commit

Permalink
this is amazing, I'm amazing, everything is awesome
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Feb 21, 2024
1 parent 2960476 commit 02a5593
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cascadia/TerminalApp/TasksPaneContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ namespace winrt::TerminalApp::implementation
void TasksPaneContent::_runCommandButtonClicked(const Windows::Foundation::IInspectable& sender,
const Windows::UI::Xaml::RoutedEventArgs&)
{
if (const auto& taskVM{ sender.try_as<WUX::Controls::Button>().DataContext().try_as<TaskViewModel>() })
if (const auto& taskVM{ sender.try_as<WUX::Controls::Button>().DataContext().try_as<FilteredTask>() })
{
if (const auto& strongControl{ _control.get() })
{
Expand Down
2 changes: 2 additions & 0 deletions src/cascadia/TerminalApp/TasksPaneContent.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ namespace winrt::TerminalApp::implementation
}
return L"";
};

winrt::Windows::Foundation::Collections::IObservableVector<TerminalApp::FilteredTask> Children() { return _children; }
winrt::Microsoft::Terminal::Settings::Model::Command Command() { return _command; }

winrt::Windows::UI::Xaml::Visibility Visibility()
{
Expand Down
1 change: 1 addition & 0 deletions src/cascadia/TerminalApp/TasksPaneContent.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
<FontIcon FontFamily="Segoe Fluent Icons, Segoe MDL2 Assets"
FontSize="12"
Glyph="&#xE768;" />
<!-- xF5B0 is PlaySolid, also a good option. Seemed better to have a lightweight outline though -->
</Button.Content>

<Button.Resources>
Expand Down

0 comments on commit 02a5593

Please sign in to comment.