mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: Corrupted title of alert dialog (#32470)
Co-authored-by: Takao Baba <babatakao@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user