fix(settings): change IntelliSense folder selection handler
- Replace navigateToIntelliSenseFolder with selectIntelliSenseItemAsLibrary for button click - Pass intelliSensePath and false as arguments to new handler function - Update button onClick behavior to reflect new selection logic
This commit is contained in:
parent
3bed369a40
commit
301d315ed1
|
|
@ -398,7 +398,7 @@ const SettingsPage = () => {
|
||||||
<div className="font-mono text-sm text-zinc-200 bg-zinc-800 p-2 rounded flex items-center justify-between">
|
<div className="font-mono text-sm text-zinc-200 bg-zinc-800 p-2 rounded flex items-center justify-between">
|
||||||
<span className="truncate">{intelliSensePath}</span>
|
<span className="truncate">{intelliSensePath}</span>
|
||||||
<button
|
<button
|
||||||
onClick={() => navigateToIntelliSenseFolder(intelliSensePath)}
|
onClick={() => selectIntelliSenseItemAsLibrary(intelliSensePath, false)}
|
||||||
className="ml-2 px-2 py-1 bg-zinc-700 text-xs text-zinc-300 rounded hover:bg-zinc-600"
|
className="ml-2 px-2 py-1 bg-zinc-700 text-xs text-zinc-300 rounded hover:bg-zinc-600"
|
||||||
>
|
>
|
||||||
Select as Library
|
Select as Library
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue