mail: open New E-mail query on notification click
Change-Id: Iaf3fd1c5e8bdc537c67a796fe9aecb1451c825b8 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6094 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com> Tested-by: Automation <automation@haiku-os.org>
This commit is contained in:
parent
338570d8d6
commit
45d7047cca
@ -201,6 +201,18 @@ MailDaemonApplication::ReadyToRun()
|
||||
fNotification = new BNotification(B_INFORMATION_NOTIFICATION);
|
||||
fNotification->SetGroup(B_TRANSLATE("Mail status"));
|
||||
fNotification->SetMessageID("daemon_status");
|
||||
|
||||
BPath path;
|
||||
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) {
|
||||
path.Append("Mail/New E-mail");
|
||||
|
||||
entry_ref ref;
|
||||
if (get_ref_for_path(path.Path(), &ref) == B_OK) {
|
||||
fNotification->SetOnClickApp("application/x-vnd.Be-TRAK");
|
||||
fNotification->AddOnClickRef(&ref);
|
||||
}
|
||||
}
|
||||
|
||||
_UpdateNewMessagesNotification();
|
||||
|
||||
app_info info;
|
||||
|
Loading…
Reference in New Issue
Block a user