Skip to content
This repository was archived by the owner on Oct 27, 2019. It is now read-only.

Commit 368369b

Browse files
authored
Fixed a bug where only the Intel icon would be shown.
1 parent aafa88f commit 368369b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/lib/prime-indicator/prime-indicator

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Indicator:
7878
self.icon_name = theme.lookup_icon(self.active_gpu, max(theme.get_icon_sizes(self.active_gpu)),
7979
0).get_filename()
8080
else:
81-
self.icon_name = INTEL_COLOR
81+
self.icon_name = INTEL_COLOR if self.active_gpu == INTEL else NVIDIA_COLOR
8282
print("ALERT: GTK Icon Theme does not provide an icon for " + (
8383
"Intel" if self.active_gpu == INTEL else "NVIDIA") + ". Using default color icon instead!")
8484
elif self.theme_icons == "color":

0 commit comments

Comments
 (0)