Skip to content

Commit a51e651

Browse files
authored
Update MultiProfile.md
1 parent 466ef32 commit a51e651

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

specs/MultiProfile.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,14 @@ HRESULT AppWindow::OnCreateCoreWebView2ControllerCompleted(HRESULT result, ICore
102102
CHECK_FAILURE(webview7->get_Profile(&profile));
103103

104104
// Accesses the profile object.
105-
wil::unique_cotaskmem_string name;
106-
CHECK_FAILURE(profile->get_ProfileName(&name));
107105
BOOL inPrivateModeEnabled = FALSE;
108106
CHECK_FAILURE(profile->get_IsInPrivateModeEnabled(&inPrivateModeEnabled));
109107
wil::unique_cotaskmem_string profile_path;
110108
CHECK_FAILURE(profile->get_ProfilePath(&profile_path));
111109
std::wstring str(profile_path.get());
112-
m_profileName = str.substr(str.find_last_of(L'\\') + 1);
110+
m_profileDirName = str.substr(str.find_last_of(L'\\') + 1);
113111
114-
// update window title with m_profileName
112+
// update window title with m_profileDirName
115113
UpdateAppTitle();
116114

117115
// update window icon

0 commit comments

Comments
 (0)