2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Use QString::chop instead of QString::chopped

This commit is contained in:
RadRussianRus
2020-03-15 01:54:31 +03:00
parent 6f036ab3c8
commit a20c2a8d0a

View File

@@ -469,7 +469,9 @@ void MainWindow::setPositionInited() {
}
void MainWindow::attachToTrayIcon(not_null<QSystemTrayIcon*> icon) {
icon->setToolTip(AppName.utf16()+"\n"+cWorkingDir().chopped(1));
auto workdir = cWorkingDir();
workdir.chop(1);
icon->setToolTip(AppName.utf16()+"\n"+workdir);
connect(icon, &QSystemTrayIcon::activated, this, [=](
QSystemTrayIcon::ActivationReason reason) {
Core::Sandbox::Instance().customEnterFromEventLoop([&] {