Refactor ZenGradientGenerator to exclude workspaces without gradients

This commit is contained in:
mr. M 2024-10-26 18:05:00 +02:00
parent 2572fb55f6
commit b2f80fb7e1
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -9,7 +9,7 @@
currentRotation = 45;
init() {
if (!Services.prefs.getBoolPref('zen.theme.gradient', true)) {
if (!Services.prefs.getBoolPref('zen.theme.gradient', true) || !ZenWorkspaces.shouldHaveWorkspaces) {
return;
}