Procházet zdrojové kódy

always close the tab (fix #772)

Gildas před 4 roky
rodič
revize
b77469c71a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      extension/core/bg/autosave.js

+ 1 - 1
extension/core/bg/autosave.js

@@ -225,7 +225,7 @@ async function saveContent(message, tab) {
 		} finally {
 		} finally {
 			if (message.taskId) {
 			if (message.taskId) {
 				business.onSaveEnd(message.taskId);
 				business.onSaveEnd(message.taskId);
-			} else if (options.autoSaveDiscard && options.autoClose) {
+			} else if (options.autoClose) {
 				tabs.remove(replacedTabIds[tabId] || tabId);
 				tabs.remove(replacedTabIds[tabId] || tabId);
 				delete replacedTabIds[tabId];
 				delete replacedTabIds[tabId];
 			}
 			}