Skip to content
Commit 7206fd57 authored by Yerrey Dev's avatar Yerrey Dev Committed by Fushan Wen
Browse files

kcms/baloo: Fix state checking and button behaviour

Currently `currentlyIndexing` function always returns `true` as `monitor.IndexerState` isn't a thing. This causes the button to always show "Pause Indexer".

This MR fixes the issue of the `IndexerState state` enum being checked incorrectly in the switch statement, and also the `QQC2.Button` text being show incorrectly no matter whether the indexing is suspended or not. The reason `currentlyIndexing` function cannot be used in the button text is because it also has values of `Idle`, `LowPowerIdle`, `Unavailable`, `Startup` that should show "Pause Indexer" as the indexer is still enabled even if it has nothing to do at the moment.
parent a4dcef99
Pipeline #118158 passed with stage
in 5 minutes and 46 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment