From 4205a29bc3756da8572d512a6711ae71fcf70f66 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Mon, 6 Dec 2021 19:16:13 +0300 Subject: [PATCH] [desktop] for bug 54387 --- .../forms/app/controller/ApplicationController.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/documenteditor/forms/app/controller/ApplicationController.js b/apps/documenteditor/forms/app/controller/ApplicationController.js index 52463d98f..4731a0c8e 100644 --- a/apps/documenteditor/forms/app/controller/ApplicationController.js +++ b/apps/documenteditor/forms/app/controller/ApplicationController.js @@ -1872,6 +1872,9 @@ define([ Common.Gateway.on('opendocument', function () { api = DE.getController('ApplicationController').api; + + var is_win_xp = window.RendererProcessVariable && window.RendererProcessVariable.os === 'winxp'; + Common.UI.Themes.setAvailable(!is_win_xp); }); return {