36 lines
1.6 KiB
Diff
36 lines
1.6 KiB
Diff
diff -up gnome-tweaks-40.0/gtweak/tweaks/tweak_group_desktop.py.1 gnome-tweaks-40.0/gtweak/tweaks/tweak_group_desktop.py
|
|
--- gnome-tweaks-40.0/gtweak/tweaks/tweak_group_desktop.py.1 2021-03-27 22:15:34.200934600 +0100
|
|
+++ gnome-tweaks-40.0/gtweak/tweaks/tweak_group_desktop.py 2021-06-18 12:39:37.112857745 +0200
|
|
@@ -3,8 +3,17 @@
|
|
# License-Filename: LICENSES/GPL-3.0
|
|
|
|
from gtweak.widgets import ListBoxTweakGroup, GSettingsSwitchTweak, Title
|
|
+from gtweak.gshellwrapper import GnomeShellFactory
|
|
|
|
-dicons = GSettingsSwitchTweak(_("Show Icons"),"org.gnome.desktop.background","show-desktop-icons")
|
|
+_shell = GnomeShellFactory().get_shell()
|
|
+_shell_is_classic = False
|
|
+
|
|
+if (not(_shell is None)):
|
|
+ _shell_is_classic = _shell.mode == 'classic'
|
|
+
|
|
+dicons = None
|
|
+if (not(_shell_is_classic)):
|
|
+ dicons = GSettingsSwitchTweak(_("Show Icons"),"org.gnome.desktop.background","show-desktop-icons")
|
|
|
|
# show-desktop-icons is in gsettings-desktop-schemas, but it won't actually
|
|
# *work* unless we have a version of Nautilus that still has the ability to
|
|
diff -up gnome-tweaks-40.0/gtweak/widgets.py.1 gnome-tweaks-40.0/gtweak/widgets.py
|
|
--- gnome-tweaks-40.0/gtweak/widgets.py.1 2021-06-18 12:39:37.112857745 +0200
|
|
+++ gnome-tweaks-40.0/gtweak/widgets.py 2021-06-18 12:40:59.950824933 +0200
|
|
@@ -207,6 +207,9 @@ class ListBoxTweakGroup(Gtk.ListBox, Twe
|
|
# the search cache etc)
|
|
|
|
def add_tweak_row(self, t, activatable=False, position=None):
|
|
+ if t == None:
|
|
+ return None
|
|
+
|
|
if self.add_tweak(t):
|
|
if isinstance(t, Gtk.ListBoxRow):
|
|
row = t
|