confine art creator to staging for now
This commit is contained in:
parent
4d357f6f06
commit
f59e35ea0a
7 changed files with 10 additions and 2 deletions
|
@ -94,7 +94,7 @@ import type { MenuActionType } from '../ts/types/menu';
|
|||
import { createTemplate } from './menu';
|
||||
import { installFileHandler, installWebHandler } from './protocol_filter';
|
||||
import * as OS from '../ts/OS';
|
||||
import { isProduction } from '../ts/util/version';
|
||||
import { isProduction, isStaging } from '../ts/util/version';
|
||||
import {
|
||||
isSgnlHref,
|
||||
isCaptchaHref,
|
||||
|
@ -1984,6 +1984,7 @@ function setupMenu(options?: Partial<CreateTemplateOptionsType>) {
|
|||
devTools: defaultWebPrefs.devTools,
|
||||
includeSetup: false,
|
||||
isProduction: isProduction(app.getVersion()),
|
||||
isStaging: isStaging(app.getVersion()),
|
||||
platform,
|
||||
|
||||
// actions
|
||||
|
|
|
@ -22,6 +22,7 @@ export const createTemplate = (
|
|||
|
||||
const {
|
||||
isProduction,
|
||||
isStaging,
|
||||
devTools,
|
||||
includeSetup,
|
||||
openContactUs,
|
||||
|
@ -47,7 +48,7 @@ export const createTemplate = (
|
|||
submenu: [
|
||||
{
|
||||
label: i18n('mainMenuCreateStickers'),
|
||||
click: isProduction ? showStickerCreator : openArtCreator,
|
||||
click: isStaging ? openArtCreator : showStickerCreator,
|
||||
},
|
||||
{
|
||||
label: i18n('mainMenuSettings'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue