Packported upstream patch with theme changing fix.

This commit is contained in:
Vitaly Zaitsev 2020-06-14 14:32:06 +02:00
parent 075966fa3f
commit b491c234e6
No known key found for this signature in database
GPG Key ID: BF99FC6DD45AB90A
2 changed files with 25 additions and 0 deletions

22
nheko-themes-fix.patch Normal file
View File

@ -0,0 +1,22 @@
From e1706f4df5505ebe400cb389ddf6a860557e0c77 Mon Sep 17 00:00:00 2001
From: Lorem <notloremipsum@protonmail.com>
Date: Sun, 14 Jun 2020 13:56:15 +0530
Subject: [PATCH] Fix not being able to change theme
---
src/UserSettingsPage.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp
index 88cbd1c9..05ff6d38 100644
--- a/src/UserSettingsPage.cpp
+++ b/src/UserSettingsPage.cpp
@@ -271,7 +271,7 @@ UserSettings::setPresence(Presence state)
void
UserSettings::setTheme(QString theme)
{
- if (theme == theme)
+ if (theme == theme_)
return;
theme_ = theme;
save();

View File

@ -13,6 +13,9 @@ License: GPLv3+
URL: https://github.com/Nheko-Reborn/nheko
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/Nheko-Reborn/nheko/pull/220
Patch100: %{name}-themes-fix.patch
BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Svg)
BuildRequires: cmake(Qt5DBus)