From 09dbbeea852706989fb4f9ec78fe19eb1c52ec24 Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Thu, 20 Jul 2017 01:02:45 -0400 Subject: [PATCH] clean up if then --- core | 2 +- drawing/Graphics.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core b/core index 05e90da..5fd6e1b 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 05e90da34584f98a6b7d46f7b22e8701a5b3d285 +Subproject commit 5fd6e1b11239b1d24b6c1a18cbfb6c7f876acc96 diff --git a/drawing/Graphics.lua b/drawing/Graphics.lua index 236493a..fd1dcff 100644 --- a/drawing/Graphics.lua +++ b/drawing/Graphics.lua @@ -234,7 +234,7 @@ local update = function(cr) -- no optirun processes, we call this "Mixed." In this case we don't -- check anything (to allow bbswitch to actually switch off) and set all -- values to N/A and 0. - if __string_find(Util.execute_cmd('ps -A -o comm'), 'optirun') == nil then + if not __string_find(Util.execute_cmd('ps -A -o comm'), 'optirun') then Text.set(status.value, cr, 'Mixed') nvidia_off(cr) else