Explorar el Código

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

Gildas hace 7 años
padre
commit
d2f88ab357
Se han modificado 1 ficheros con 5 adiciones y 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