PowerAdapter (Linux): don't print not connected either

To align result to macOS
This commit is contained in:
Carter Li
2024-02-08 13:51:30 +08:00
parent 0746afa0c2
commit 71db83f806
4 changed files with 13 additions and 24 deletions
-2
View File
@@ -33,8 +33,6 @@ void ffPrintPowerAdapter(FFPowerAdapterOptions* options)
if(result->name.length > 0)
puts(result->name.chars);
else if(result->watts == FF_POWERADAPTER_NOT_CONNECTED)
puts("not connected");
else
printf("%dW\n", result->watts);
}