Explorar o código

don't select new profile when creating it via the sidepanel

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
d2f88ab357
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      extension/ui/bg/ui-options.js

+ 5 - 1
extension/ui/bg/ui-options.js

@@ -224,7 +224,11 @@
 		if (profileName) {
 			try {
 				await browser.runtime.sendMessage({ createProfile: true, profileName });
-				await refresh(profileName);
+				if (sidePanelDisplay) {
+					await refresh();
+				} else {
+					await refresh(profileName);
+				}
 				refreshExternalComponents();
 			} catch (error) {
 				// ignored