Browse Source

Set macOs check to local file

master
jeffvli 3 years ago
committed by Jeff
parent
commit
1762ca689b
  1. 3
      src/components/settings/ConfigPanels/PlayerConfig.tsx
  2. 8
      src/main.dev.js

3
src/components/settings/ConfigPanels/PlayerConfig.tsx

@ -16,7 +16,8 @@ import { useAppDispatch, useAppSelector } from '../../../redux/hooks';
import { setPlaybackSetting } from '../../../redux/playQueueSlice'; import { setPlaybackSetting } from '../../../redux/playQueueSlice';
import ListViewTable from '../../viewtypes/ListViewTable'; import ListViewTable from '../../viewtypes/ListViewTable';
import { appendPlaybackFilter } from '../../../redux/configSlice'; import { appendPlaybackFilter } from '../../../redux/configSlice';
import { isMacOS } from '../../../main.dev';
const isMacOS = process.platform === 'darwin';
const playbackFilterColumns = [ const playbackFilterColumns = [
{ {

8
src/main.dev.js

@ -37,10 +37,10 @@ settings.configure({
numSpaces: 2, numSpaces: 2,
}); });
export const isWindows = process.platform === 'win32'; const isWindows = process.platform === 'win32';
export const isWindows10 = os.release().match(/^10\.*/g); const isWindows10 = os.release().match(/^10\.*/g);
export const isMacOS = process.platform === 'darwin'; const isMacOS = process.platform === 'darwin';
export const isLinux = process.platform === 'linux'; const isLinux = process.platform === 'linux';
setDefaultSettings(false); setDefaultSettings(false);

Loading…
Cancel
Save