Skip to content

Commit

Permalink
Hide activation button on windows (#793)
Browse files Browse the repository at this point in the history
This PR hides activation button on platforms that are not macos
  • Loading branch information
filip131311 authored Nov 29, 2024
1 parent fb06919 commit 1fc3722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vscode-extension/src/webview/views/PreviewView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
RecordingData,
ZoomLevelType,
} from "../../common/Project";
import { useUtils } from "../providers/UtilsProvider";
import { Platform, useUtils } from "../providers/UtilsProvider";
import { AndroidSupportedDevices, iOSSupportedDevices } from "../utilities/consts";
import "./View.css";
import "./PreviewView.css";
Expand Down Expand Up @@ -317,7 +317,7 @@ function PreviewView() {
/>

<div className="spacer" />
{!hasActiveLicense && <ActivateLicenseButton />}
{Platform.OS === "macos" && !hasActiveLicense && <ActivateLicenseButton />}
<DeviceSettingsDropdown disabled={devicesNotFound || !isRunning}>
<IconButton tooltip={{ label: "Device settings", type: "primary" }}>
<DeviceSettingsIcon
Expand Down

0 comments on commit 1fc3722

Please sign in to comment.