parent
3b183854ff
commit
2d3c65beca
31 changed files with 200 additions and 152 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "third_party/skia/include/core/SkBitmap.h"
|
||||
|
||||
namespace electron {
|
||||
|
@ -49,13 +50,15 @@ void Win32Notification::Show(const NotificationOptions& options) {
|
|||
existing->tag_.clear();
|
||||
|
||||
this->notification_ref_ = std::move(existing->notification_ref_);
|
||||
this->notification_ref_.Set(options.title, options.msg, image);
|
||||
this->notification_ref_.Set(base::UTF16ToWide(options.title),
|
||||
base::UTF16ToWide(options.msg), image);
|
||||
// Need to remove the entry in the notifications set that
|
||||
// NotificationPresenter is holding
|
||||
existing->Destroy();
|
||||
} else {
|
||||
this->notification_ref_ =
|
||||
presenter->AddNotification(options.title, options.msg, image);
|
||||
presenter->AddNotification(base::UTF16ToWide(options.title),
|
||||
base::UTF16ToWide(options.msg), image);
|
||||
}
|
||||
|
||||
this->tag_ = options.tag;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue