1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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 2021-11-04 09:24:54 -04:00
parent a93108c103
commit 4ac4e80a50

View File

@ -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",