mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-29 09:27:33 -05:00
ui : close the selector when the manager opens
Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
This commit is contained in:
@@ -190,6 +190,14 @@ export function useModelsSelector(opts: UseModelsSelectorOptions): UseModelsSele
|
||||
);
|
||||
const emptyMessage = $derived(searchTerm ? 'No models found.' : 'No models yet.');
|
||||
|
||||
// a row action can hand over to the models manager, which takes the focus;
|
||||
// the selector closes so it does not sit open behind the dialog
|
||||
$effect(() => {
|
||||
if (!uiStore.manageModelsOpen) return;
|
||||
|
||||
opts.onOpenChange?.(false);
|
||||
});
|
||||
|
||||
onMount(() => {
|
||||
modelsStore.fetch().catch((error) => {
|
||||
console.error('Unable to load models:', error);
|
||||
|
||||
Reference in New Issue
Block a user