Skip to content

Commit acff8e4

Browse files
committed
Compare GPU types instead of string properties
1 parent 4478ad7 commit acff8e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Views/SystemView/SystemView.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public class Monitor.SystemView : Gtk.Box {
3636
wrapper.add (network_view);
3737
wrapper.add (storage_view);
3838

39-
foreach (var gpu in resources.gpu_list) {
40-
if (gpu.name.contains ("Intel") || gpu.name.contains ("nVidia")) {
39+
foreach (IGPU gpu in resources.gpu_list) {
40+
if (gpu is GPUIntel || gpu is GPUNvidia) {
4141
wrapper.add (build_no_support_label (gpu.name));
4242
} else {
4343
var gpu_view = new SystemGPUView (gpu);

0 commit comments

Comments
 (0)