mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use current exe's icon as default window icon.
Fixes atom/atom-shell#863.
This commit is contained in:
@@ -50,7 +50,8 @@ void ViewsDelegate::NotifyMenuItemFocused(
|
||||
|
||||
#if defined(OS_WIN)
|
||||
HICON ViewsDelegate::GetDefaultWindowIcon() const {
|
||||
return NULL;
|
||||
// Use current exe's icon as default window icon.
|
||||
return LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(1 /* IDR_MAINFRAME */));
|
||||
}
|
||||
|
||||
bool ViewsDelegate::IsWindowInMetro(gfx::NativeWindow window) const {
|
||||
|
||||
Reference in New Issue
Block a user