Allow deleting downloaded speech models on desktop and mobile (#5794)
* Allow deleting downloaded speech models on desktop and mobile Implement safe deletion of local speech models across desktop and mobile platforms. - Add a shared helper to coordinate STT service teardown, file deletion, and voice settings cleanup. - Prevent deleting speech models that are currently in use or starting. - Update desktop and mobile settings UIs to expose the delete action. * Track multiple pending model deletions and update action disabling - Replace the single pending delete ID string state with a Set of IDs on desktop settings to track multiple concurrently deleting models. - Switch the desktop delete action to use the standard themed Button component. - Disable all row interactions on the mobile voice model list when any model action is busy. - Add unit test coverage verifying that individual row delete button disabled states behave correctly.
This commit is contained in:
@@ -305,6 +305,7 @@ const MOBILE_RPC_METHOD_ALLOWLIST = new Set([
|
||||
'speech.dictation.finish',
|
||||
'speech.dictation.setup',
|
||||
'speech.dictation.start',
|
||||
'speech.models.delete',
|
||||
'speech.models.download',
|
||||
'speech.models.list',
|
||||
'stats.summary',
|
||||
|
||||
Reference in New Issue
Block a user