fix: pass id instead of profile name to open_url_with_profile

This commit is contained in:
zhom
2025-08-19 13:38:29 +04:00
parent e12a5661b1
commit f5066e866b
2 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -94,12 +94,12 @@ export function ProfileSelectorDialog({
setIsLaunching(true);
const selected = profiles.find((p) => p.name === selectedProfile);
if (selected) {
setLaunchingProfiles((prev) => new Set(prev).add(selected.id));
}
if (!selected) return;
setLaunchingProfiles((prev) => new Set(prev).add(selected.id));
try {
await invoke("open_url_with_profile", {
profileId: selectedProfile,
profileId: selected.id,
url,
});
onClose();