tiny nits
This commit is contained in:
parent
88da035e8a
commit
80fe386954
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
|
||||
|
|
|
@ -3683,9 +3683,6 @@ namespace winrt::TerminalApp::implementation
|
|||
// TODO: GH#8592 - It may be useful to pop a Toast here in the original
|
||||
// Terminal window informing the user that the tab was opened in a new
|
||||
// window.
|
||||
|
||||
// Hop to the BG thread
|
||||
// co_await winrt::resume_background();
|
||||
}
|
||||
|
||||
// Method Description:
|
||||
|
|
|
@ -193,7 +193,15 @@ namespace winrt::Microsoft::Terminal::Settings::Model::implementation
|
|||
}
|
||||
size_t Hash() const
|
||||
{
|
||||
return ::Microsoft::Terminal::Settings::Model::HashUtils::HashProperty(Commandline(), StartingDirectory(), TabTitle(), TabColor(), ProfileIndex(), Profile(), SuppressApplicationTitle(), ColorScheme());
|
||||
return ::Microsoft::Terminal::Settings::Model::HashUtils::HashProperty(Commandline(),
|
||||
StartingDirectory(),
|
||||
TabTitle(),
|
||||
TabColor(),
|
||||
ProfileIndex(),
|
||||
Profile(),
|
||||
SuppressApplicationTitle(),
|
||||
ColorScheme(),
|
||||
Elevate());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -117,6 +117,12 @@ namespace Microsoft.Terminal.Settings.Model
|
|||
String TabTitle;
|
||||
Windows.Foundation.IReference<Windows.UI.Color> TabColor;
|
||||
String Profile; // Either a GUID or a profile's name if the GUID isn't a match
|
||||
|
||||
// We use IReference<> to treat some args as nullable where null means
|
||||
// "use the inherited value". See ProfileIndex,
|
||||
// SuppressApplicationTitle, Elevate. Strings that behave this way just
|
||||
// use `null` as "use the inherited value".
|
||||
|
||||
// ProfileIndex can be null (for "use the default"), so this needs to be
|
||||
// a IReference, so it's nullable
|
||||
Windows.Foundation.IReference<Int32> ProfileIndex { get; };
|
||||
|
|
Loading…
Reference in a new issue