mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-12 22:51:52 +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