More app name replaces

This commit is contained in:
Eric Kotato 2020-03-30 16:06:41 +03:00
parent 396e55a6c2
commit 91a5942273
2 changed files with 4 additions and 5 deletions

View file

@ -729,7 +729,7 @@ void MainWindow::createGlobalMenu() {
SLOT(onLogout())); SLOT(onLogout()));
auto quit = file->addAction( auto quit = file->addAction(
tr::lng_mac_menu_quit_telegram(tr::now, lt_telegram, qsl("Telegram")), tr::lng_mac_menu_quit_telegram(tr::now, lt_telegram, qsl("Kotatogram")),
App::wnd(), App::wnd(),
SLOT(quitFromTray()), SLOT(quitFromTray()),
QKeySequence::Quit); QKeySequence::Quit);
@ -880,7 +880,7 @@ void MainWindow::createGlobalMenu() {
tr::lng_mac_menu_about_telegram( tr::lng_mac_menu_about_telegram(
tr::now, tr::now,
lt_telegram, lt_telegram,
qsl("Telegram")), qsl("Kotatogram")),
[] { [] {
if (App::wnd() && App::wnd()->isHidden()) { if (App::wnd() && App::wnd()->isHidden()) {
App::wnd()->showFromTray(); App::wnd()->showFromTray();

View file

@ -48,7 +48,7 @@ namespace {
constexpr auto kDesktopFile = ":/misc/kotatogramdesktop.desktop"_cs; constexpr auto kDesktopFile = ":/misc/kotatogramdesktop.desktop"_cs;
constexpr auto kSnapLauncherDir = "/var/lib/snapd/desktop/applications/"_cs; constexpr auto kSnapLauncherDir = "/var/lib/snapd/desktop/applications/"_cs;
constexpr auto kIconName = "telegram"_cs; constexpr auto kIconName = "kotatogram"_cs;
#ifndef TDESKTOP_DISABLE_DBUS_INTEGRATION #ifndef TDESKTOP_DISABLE_DBUS_INTEGRATION
void SandboxAutostart(bool autostart, bool silent = false) { void SandboxAutostart(bool autostart, bool silent = false) {
@ -332,8 +332,7 @@ QString GetLauncherBasename() {
} }
const auto possibleBasenames = std::vector<QString>{ const auto possibleBasenames = std::vector<QString>{
qsl(MACRO_TO_STRING(TDESKTOP_LAUNCHER_BASENAME)), qsl(MACRO_TO_STRING(TDESKTOP_LAUNCHER_BASENAME))
qsl("Telegram")
}; };
for (const auto &it : possibleBasenames) { for (const auto &it : possibleBasenames) {