mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-17 00:41:11 +00:00
Centralize the name of the application being updated in AppInfo.h
Also add AppInfo.h missing from previous commit.
This commit is contained in:
parent
7597dee64a
commit
be2e0520ad
2 changed files with 22 additions and 1 deletions
21
src/AppInfo.h
Normal file
21
src/AppInfo.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
class AppInfo
|
||||
{
|
||||
public:
|
||||
static std::string name();
|
||||
static std::string appName();
|
||||
};
|
||||
|
||||
inline std::string AppInfo::name()
|
||||
{
|
||||
return "Mendeley Updater";
|
||||
}
|
||||
|
||||
inline std::string AppInfo::appName()
|
||||
{
|
||||
return "Mendeley Desktop";
|
||||
}
|
||||
|
|
@ -54,7 +54,7 @@ void UpdateDialogAscii::updateProgress(int percentage)
|
|||
void UpdateDialogAscii::updateFinished()
|
||||
{
|
||||
m_mutex.lock();
|
||||
m_output << "\nUpdate Finished. You can now restart Mendeley Desktop." << std::endl;
|
||||
m_output << "\nUpdate Finished. You can now restart " << AppInfo::appName() << "." << std::endl;
|
||||
m_mutex.unlock();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue