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:
@@ -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, '_');
|
||||
|
||||
|
Reference in New Issue
Block a user