Skip to content

Commit

Permalink
fix: Corrupted title of alert dialog (#32468)
Browse files Browse the repository at this point in the history
Co-authored-by: Takao Baba <babatakao@gmail.com>
  • Loading branch information
trop[bot] and babatakao committed Jan 17, 2022
1 parent 1a148a8 commit 26690b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/browser/ui/message_box_win.cc
Expand Up @@ -171,8 +171,9 @@ DialogResult ShowTaskDialogWstr(NativeWindow* parent,

// TaskDialogIndirect doesn't allow empty name, if we set empty title it
// will show "electron.exe" in title.
std::wstring app_name;
if (title.empty()) {
std::wstring app_name = base::UTF8ToWide(Browser::Get()->GetName());
app_name = base::UTF8ToWide(Browser::Get()->GetName());
config.pszWindowTitle = app_name.c_str();
} else {
config.pszWindowTitle = base::as_wcstr(title);
Expand Down

0 comments on commit 26690b1

Please sign in to comment.