Fix not being able to sync kube config files on linux

- Like windows, linux does not support openDirectory and openFile at the
  same time

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-11-04 09:24:54 -04:00
1 parent a93108c103
commit 4ac4e80a50
1 file changed
+2 -2
@@ -26,7 +26,7 @@ import { multiSet } from "../utils";
import { UserStore } from "../../common/user-store";
import { getAllEntries } from "../components/+preferences/kubeconfig-syncs";
import { runInAction } from "mobx";
import { isWindows } from "../../common/vars";
import { isLinux, isWindows } from "../../common/vars";
import { PathPicker } from "../components/path-picker";
import { Notifications } from "../components/notifications";
import { Link } from "react-router-dom";
@@ -57,7 +57,7 @@ export function initCatalogCategoryRegistryEntries() {
},
);
if (isWindows) {
if (isWindows || isLinux) {
ctx.menuItems.push(
{
icon: "create_new_folder",