 
   // The following should only be used when Cmd-Q'ing
   func applyPref(from appState: AppState) {
-    defaults.setValue(appState.dict(), forKey: PrefMiddleware.compatibleVersion)
+    defaults.set(appState.dict(), forKey: PrefMiddleware.compatibleVersion)
   }
 
   func typedApply(_ reduce: @escaping TypedActionReduceFunction) -> TypedActionReduceFunction {

          return result
        }

        defaults.setValue(result.state.dict(), forKey: PrefMiddleware.compatibleVersion)
        return result
      }
    }

        return result
      }

      defaults.set(result.state.dict(), forKey: PrefMiddleware.compatibleVersion)

      return result
    }
