mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix spaces on ends of lines
This commit is contained in:
parent
23272430b4
commit
092b6e7c18
4 changed files with 11 additions and 11 deletions
|
@ -32,7 +32,7 @@ public:
|
||||||
const QString &filter,
|
const QString &filter,
|
||||||
FileDialogType type,
|
FileDialogType type,
|
||||||
QString startFile) const;
|
QString startFile) const;
|
||||||
|
|
||||||
[[nodiscard]] bool showOpenWithDialog(const QString &filepath) const;
|
[[nodiscard]] bool showOpenWithDialog(const QString &filepath) const;
|
||||||
|
|
||||||
[[nodiscard]] QImage getImageFromClipboard() const;
|
[[nodiscard]] QImage getImageFromClipboard() const;
|
||||||
|
|
|
@ -887,7 +887,7 @@ void MainWindow::updateIconCounters() {
|
||||||
dbusUnityProperties["count-visible"] =
|
dbusUnityProperties["count-visible"] =
|
||||||
Glib::Variant<bool>::create(true);
|
Glib::Variant<bool>::create(true);
|
||||||
} else {
|
} else {
|
||||||
dbusUnityProperties["count-visible"] =
|
dbusUnityProperties["count-visible"] =
|
||||||
Glib::Variant<bool>::create(false);
|
Glib::Variant<bool>::create(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ void GetServerInformation(
|
||||||
LOG(("Native Notification Error: %1").arg(
|
LOG(("Native Notification Error: %1").arg(
|
||||||
QString::fromStdString(e.what())));
|
QString::fromStdString(e.what())));
|
||||||
}
|
}
|
||||||
|
|
||||||
crl::on_main([=] { callback({}); });
|
crl::on_main([=] { callback({}); });
|
||||||
},
|
},
|
||||||
std::string(kService));
|
std::string(kService));
|
||||||
|
@ -119,7 +119,7 @@ void GetServerInformation(
|
||||||
LOG(("Native Notification Error: %1").arg(
|
LOG(("Native Notification Error: %1").arg(
|
||||||
QString::fromStdString(e.what())));
|
QString::fromStdString(e.what())));
|
||||||
}
|
}
|
||||||
|
|
||||||
crl::on_main([=] { callback(std::nullopt); });
|
crl::on_main([=] { callback(std::nullopt); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ void GetCapabilities(Fn<void(const QStringList &)> callback) {
|
||||||
LOG(("Native Notification Error: %1").arg(
|
LOG(("Native Notification Error: %1").arg(
|
||||||
QString::fromStdString(e.what())));
|
QString::fromStdString(e.what())));
|
||||||
}
|
}
|
||||||
|
|
||||||
crl::on_main([=] { callback({}); });
|
crl::on_main([=] { callback({}); });
|
||||||
},
|
},
|
||||||
std::string(kService));
|
std::string(kService));
|
||||||
|
@ -166,7 +166,7 @@ void GetCapabilities(Fn<void(const QStringList &)> callback) {
|
||||||
LOG(("Native Notification Error: %1").arg(
|
LOG(("Native Notification Error: %1").arg(
|
||||||
QString::fromStdString(e.what())));
|
QString::fromStdString(e.what())));
|
||||||
}
|
}
|
||||||
|
|
||||||
crl::on_main([=] { callback({}); });
|
crl::on_main([=] { callback({}); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ void GetInhibitionSupported(Fn<void(bool)> callback) {
|
||||||
QString::fromStdString(e.what())));
|
QString::fromStdString(e.what())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
crl::on_main([=] { callback(false); });
|
crl::on_main([=] { callback(false); });
|
||||||
},
|
},
|
||||||
std::string(kService));
|
std::string(kService));
|
||||||
|
@ -214,7 +214,7 @@ void GetInhibitionSupported(Fn<void(bool)> callback) {
|
||||||
LOG(("Native Notification Error: %1").arg(
|
LOG(("Native Notification Error: %1").arg(
|
||||||
QString::fromStdString(e.what())));
|
QString::fromStdString(e.what())));
|
||||||
}
|
}
|
||||||
|
|
||||||
crl::on_main([=] { callback(false); });
|
crl::on_main([=] { callback(false); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ PortalAutostart::PortalAutostart(bool start, bool silent) {
|
||||||
if (const auto activeWindow = Core::App().activeWindow()) {
|
if (const auto activeWindow = Core::App().activeWindow()) {
|
||||||
if (IsX11()) {
|
if (IsX11()) {
|
||||||
result
|
result
|
||||||
<< "x11:"
|
<< "x11:"
|
||||||
<< std::hex
|
<< std::hex
|
||||||
<< activeWindow
|
<< activeWindow
|
||||||
->widget()
|
->widget()
|
||||||
|
@ -139,7 +139,7 @@ PortalAutostart::PortalAutostart(bool start, bool silent) {
|
||||||
+ uniqueName
|
+ uniqueName
|
||||||
+ '/'
|
+ '/'
|
||||||
+ handleToken;
|
+ handleToken;
|
||||||
|
|
||||||
QEventLoop loop;
|
QEventLoop loop;
|
||||||
|
|
||||||
const auto signalId = connection->signal_subscribe(
|
const auto signalId = connection->signal_subscribe(
|
||||||
|
@ -155,7 +155,7 @@ PortalAutostart::PortalAutostart(bool start, bool silent) {
|
||||||
|
|
||||||
const auto response = base::Platform::GlibVariantCast<
|
const auto response = base::Platform::GlibVariantCast<
|
||||||
uint>(parametersCopy.get_child(0));
|
uint>(parametersCopy.get_child(0));
|
||||||
|
|
||||||
if (response && !silent) {
|
if (response && !silent) {
|
||||||
LOG(("Portal Autostart Error: Request denied"));
|
LOG(("Portal Autostart Error: Request denied"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue