2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Get optional string support in cppgir

This commit is contained in:
Ilya Fedin
2023-08-09 20:43:54 +04:00
committed by John Preston
parent dfe36f638b
commit 12eed5f433
4 changed files with 8 additions and 4 deletions

View File

@@ -241,7 +241,11 @@ void LinuxIntegration::initInhibit() {
return;
}
auto uniqueName = _inhibitProxy.get_connection().get_unique_name();
auto uniqueName = _inhibitProxy
.get_connection()
.get_unique_name()
.value_or("");
uniqueName.erase(0, 1);
uniqueName.replace(uniqueName.find('.'), 1, 1, '_');