mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Move AppRuntimeDirectory to private namespace
This commit is contained in:
@@ -246,12 +246,6 @@ bool GenerateDesktopFile(
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
void SetApplicationIcon(const QIcon &icon) {
|
||||
QApplication::setWindowIcon(icon);
|
||||
}
|
||||
|
||||
QString AppRuntimeDirectory() {
|
||||
static const auto Result = [&] {
|
||||
auto runtimeDir = QStandardPaths::writableLocation(
|
||||
@@ -275,6 +269,12 @@ QString AppRuntimeDirectory() {
|
||||
return Result;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
void SetApplicationIcon(const QIcon &icon) {
|
||||
QApplication::setWindowIcon(icon);
|
||||
}
|
||||
|
||||
QString SingleInstanceLocalServerName(const QString &hash) {
|
||||
const auto idealSocketPath = AppRuntimeDirectory()
|
||||
+ hash
|
||||
|
@@ -15,8 +15,6 @@ class LocationPoint;
|
||||
|
||||
namespace Platform {
|
||||
|
||||
QString AppRuntimeDirectory();
|
||||
|
||||
void InstallLauncher(bool force = false);
|
||||
|
||||
inline void IgnoreApplicationActivationRightNow() {
|
||||
|
Reference in New Issue
Block a user