[BUG] Reflect Cargo index state in settings
- Currently in the Cargo section of the packages setting menu two buttons are always shown, "Initalize index" and "Rebuild index", however only of these should be shown depending on the state of the index, if there's no index the "Initalize index" button should be shown and if there's an index the "Rebuild index" button should be shown. This patch does exactly that. - Resolves #2628
This commit is contained in:
parent
17ef8145a8
commit
461f925554
5 changed files with 87 additions and 10 deletions
|
@ -3568,6 +3568,7 @@ owner.settings.cargo.rebuild = Rebuild index
|
|||
owner.settings.cargo.rebuild.description = Rebuilding can be useful if the index is not synchronized with the stored Cargo packages.
|
||||
owner.settings.cargo.rebuild.error = Failed to rebuild Cargo index: %v
|
||||
owner.settings.cargo.rebuild.success = The Cargo index was successfully rebuild.
|
||||
owner.settings.cargo.rebuild.no_index = Cannot rebuild, no index is initialized.
|
||||
owner.settings.cleanuprules.title = Manage cleanup rules
|
||||
owner.settings.cleanuprules.add = Add cleanup rule
|
||||
owner.settings.cleanuprules.edit = Edit cleanup rule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue