Use bundle's name as application name when we have one.
This commit is contained in:
parent
a614134144
commit
fc4ed9be12
4 changed files with 29 additions and 2 deletions
|
@ -48,7 +48,13 @@ void Browser::SetVersion(const std::string& version) {
|
|||
}
|
||||
|
||||
std::string Browser::GetName() const {
|
||||
return name_override_.empty() ? "Atom-Shell" : name_override_;
|
||||
if (name_override_.empty()) {
|
||||
std::string name = GetExecutableFileProductName();
|
||||
if (!name.empty())
|
||||
return name;
|
||||
}
|
||||
|
||||
return name_override_;
|
||||
}
|
||||
|
||||
void Browser::SetName(const std::string& name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue