mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix -Wunused-variable warnings
This commit is contained in:
@@ -46,7 +46,6 @@ constexpr auto kBaseService = "org.telegram.desktop.BaseGtkIntegration-%1"_cs;
|
||||
constexpr auto kWebviewService = "org.telegram.desktop.GtkIntegration.WebviewHelper-%1-%2"_cs;
|
||||
constexpr auto kObjectPath = "/org/telegram/desktop/GtkIntegration"_cs;
|
||||
constexpr auto kInterface = "org.telegram.desktop.GtkIntegration"_cs;
|
||||
constexpr auto kPropertiesInterface = "org.freedesktop.DBus.Properties"_cs;
|
||||
constexpr auto kGifcShmId = "tdesktop-gtk-gifc"_cs;
|
||||
|
||||
constexpr auto kIntrospectionXML = R"INTROSPECTION(<node>
|
||||
|
@@ -562,7 +562,6 @@ QString XDPFileDialog::selectedNameFilter() const {
|
||||
}
|
||||
|
||||
int XDPFileDialog::exec() {
|
||||
bool deleteOnClose = testAttribute(Qt::WA_DeleteOnClose);
|
||||
setAttribute(Qt::WA_DeleteOnClose, false);
|
||||
|
||||
bool wasShowModal = testAttribute(Qt::WA_ShowModal);
|
||||
|
@@ -406,7 +406,7 @@ bool GenerateDesktopFile(
|
||||
}
|
||||
|
||||
void SetDarkMode() {
|
||||
static const auto Inited = [] {
|
||||
[[maybe_unused]] static const auto Inited = [] {
|
||||
QObject::connect(
|
||||
qGuiApp,
|
||||
&QGuiApplication::paletteChanged,
|
||||
|
Reference in New Issue
Block a user