mirror of https://github.com/procxx/kepka.git
Use MACRO_TO_STRING from lib_base.
This commit is contained in:
parent
4f71383557
commit
afe34121af
|
@ -249,12 +249,11 @@ void Launcher::init() {
|
||||||
QApplication::setApplicationName(qsl("TelegramDesktop"));
|
QApplication::setApplicationName(qsl("TelegramDesktop"));
|
||||||
|
|
||||||
#ifdef TDESKTOP_LAUNCHER_FILENAME
|
#ifdef TDESKTOP_LAUNCHER_FILENAME
|
||||||
#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V) #V
|
QApplication::setDesktopFileName(qsl(MACRO_TO_STRING(TDESKTOP_LAUNCHER_FILENAME)));
|
||||||
#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING(V) TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V)
|
|
||||||
QApplication::setDesktopFileName(qsl(TDESKTOP_LAUNCHER_FILENAME_TO_STRING(TDESKTOP_LAUNCHER_FILENAME)));
|
|
||||||
#elif defined(Q_OS_LINUX) && QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
#elif defined(Q_OS_LINUX) && QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
||||||
QApplication::setDesktopFileName(qsl("telegramdesktop.desktop"));
|
QApplication::setDesktopFileName(qsl("telegramdesktop.desktop"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef OS_MAC_OLD
|
#ifndef OS_MAC_OLD
|
||||||
QApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true);
|
QApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true);
|
||||||
#endif // OS_MAC_OLD
|
#endif // OS_MAC_OLD
|
||||||
|
|
|
@ -549,9 +549,7 @@ void MainWindow::psFirstShow() {
|
||||||
if(snapName.isEmpty()) {
|
if(snapName.isEmpty()) {
|
||||||
std::vector<QString> possibleDesktopFiles = {
|
std::vector<QString> possibleDesktopFiles = {
|
||||||
#ifdef TDESKTOP_LAUNCHER_FILENAME
|
#ifdef TDESKTOP_LAUNCHER_FILENAME
|
||||||
#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V) #V
|
MACRO_TO_STRING(TDESKTOP_LAUNCHER_FILENAME),
|
||||||
#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING(V) TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V)
|
|
||||||
TDESKTOP_LAUNCHER_FILENAME_TO_STRING(TDESKTOP_LAUNCHER_FILENAME),
|
|
||||||
#endif // TDESKTOP_LAUNCHER_FILENAME
|
#endif // TDESKTOP_LAUNCHER_FILENAME
|
||||||
"telegramdesktop.desktop",
|
"telegramdesktop.desktop",
|
||||||
"Telegram.desktop"
|
"Telegram.desktop"
|
||||||
|
|
|
@ -139,10 +139,8 @@ NotificationData::NotificationData(
|
||||||
_hints["category"] = qsl("im.received");
|
_hints["category"] = qsl("im.received");
|
||||||
|
|
||||||
#ifdef TDESKTOP_LAUNCHER_FILENAME
|
#ifdef TDESKTOP_LAUNCHER_FILENAME
|
||||||
#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V) #V
|
|
||||||
#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING(V) TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V)
|
|
||||||
_hints["desktop-entry"] =
|
_hints["desktop-entry"] =
|
||||||
qsl(TDESKTOP_LAUNCHER_FILENAME_TO_STRING(TDESKTOP_LAUNCHER_FILENAME))
|
qsl(MACRO_TO_STRING(TDESKTOP_LAUNCHER_FILENAME))
|
||||||
.remove(QRegExp(qsl("\\.desktop$"), Qt::CaseInsensitive));
|
.remove(QRegExp(qsl("\\.desktop$"), Qt::CaseInsensitive));
|
||||||
#else
|
#else
|
||||||
_hints["desktop-entry"] = qsl("telegramdesktop");
|
_hints["desktop-entry"] = qsl("telegramdesktop");
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit afb1b61161d6e534c35382b91dc24c7225ed3e5a
|
Subproject commit d383720357524af6ca9ee4ea714a29b28152bf2b
|
Loading…
Reference in New Issue