     let onReactivation = self.openOnReactivationCheckbox
 
     let openFilesFromApplicationsTitle = self.titleTextField(title: "Open files from applications:")
-    openFilesFromApplicationsPopup.target = self
-    openFilesFromApplicationsPopup.action = #selector(GeneralPref.afterOpenFilesFromApplicationsAction)
-    openFilesFromApplicationsPopup.addItems(withTitles: [
-        "In a New Window",
-        "In the Current Window",
+    self.openFilesFromApplicationsPopup.target = self
+    self.openFilesFromApplicationsPopup
+      .action = #selector(GeneralPref.afterOpenFilesFromApplicationsAction)
+    self.openFilesFromApplicationsPopup.addItems(withTitles: [
+      "In a New Window",
+      "In the Current Window",
     ])
     let openFilesFromApplicationsInfo =
-        self.infoTextField(markdown: #"""
-        This applies to files opened from the Finder \
-        (e.g. by double-clicking on a file or by dragging a file onto the VimR dock icon) \
-        or from external programs such as Xcode.
-        """#)
+      self.infoTextField(markdown: #"""
+      This applies to files opened from the Finder \
+      (e.g. by double-clicking on a file or by dragging a file onto the VimR dock icon) \
+      or from external programs such as Xcode.
+      """#)
 
     let afterLastWindowTitle = self.titleTextField(title: "After Last Window Closes:")
     let lastWindow = self.afterLastWindowPopup

    let index = sender.indexOfSelectedItem

    guard AppState.OpenFilesFromApplicationsAction.allCases.indices.contains(index) else {
        return
    }
    self.openFilesFromApplicationsAction = AppState.OpenFilesFromApplicationsAction.allCases[index]
    self.emit(.setOpenFilesFromApplications(self.openFilesFromApplicationsAction))

        }

        if self.openFilesFromApplicationsAction != state.openFilesFromApplicationsAction {
          self.openFilesFromApplicationsPopup.selectItem(
            at: AppState.OpenFilesFromApplicationsAction.allCases
              .firstIndex(of: state.openFilesFromApplicationsAction) ?? 0
          )
          self.openFilesFromApplicationsAction = state.openFilesFromApplicationsAction
        }

        if self.lastWindowAction != state.afterLastWindowAction {
