Skip to content

Commit 02a5593

Browse files
committed
this is amazing, I'm amazing, everything is awesome
1 parent 2960476 commit 02a5593

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/cascadia/TerminalApp/TasksPaneContent.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ namespace winrt::TerminalApp::implementation
120120
void TasksPaneContent::_runCommandButtonClicked(const Windows::Foundation::IInspectable& sender,
121121
const Windows::UI::Xaml::RoutedEventArgs&)
122122
{
123-
if (const auto& taskVM{ sender.try_as<WUX::Controls::Button>().DataContext().try_as<TaskViewModel>() })
123+
if (const auto& taskVM{ sender.try_as<WUX::Controls::Button>().DataContext().try_as<FilteredTask>() })
124124
{
125125
if (const auto& strongControl{ _control.get() })
126126
{

src/cascadia/TerminalApp/TasksPaneContent.h

+2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ namespace winrt::TerminalApp::implementation
151151
}
152152
return L"";
153153
};
154+
154155
winrt::Windows::Foundation::Collections::IObservableVector<TerminalApp::FilteredTask> Children() { return _children; }
156+
winrt::Microsoft::Terminal::Settings::Model::Command Command() { return _command; }
155157

156158
winrt::Windows::UI::Xaml::Visibility Visibility()
157159
{

src/cascadia/TerminalApp/TasksPaneContent.xaml

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<FontIcon FontFamily="Segoe Fluent Icons, Segoe MDL2 Assets"
7373
FontSize="12"
7474
Glyph="&#xE768;" />
75+
<!-- xF5B0 is PlaySolid, also a good option. Seemed better to have a lightweight outline though -->
7576
</Button.Content>
7677

7778
<Button.Resources>

0 commit comments

Comments
 (0)