fix two nil errors

This commit is contained in:
Rene Kievits
2022-09-22 18:18:37 +02:00
parent b5c6dc31f7
commit 6cdda097c1
2 changed files with 2 additions and 0 deletions

View File

@@ -346,6 +346,7 @@ return function()
capi.awesome.connect_signal(
"update::gpu_usage",
function(gpu_usage)
if not gpu_usage then return end
tooltip.text = "GPU Usage: " .. gpu_usage .. "%"
rubato_timer.target = tonumber(gpu_usage)
end