From 9c5d132ebc47766e9b97633f74079523f7b21e7c Mon Sep 17 00:00:00 2001 From: Gravit Date: Thu, 8 Nov 2018 13:36:54 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D1=83=D0=B4=D0=B0?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=B0=D0=BF=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dialog/overlay/settings/settings.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Launcher/runtime/dialog/overlay/settings/settings.js b/Launcher/runtime/dialog/overlay/settings/settings.js index 106b0308..5db223d9 100644 --- a/Launcher/runtime/dialog/overlay/settings/settings.js +++ b/Launcher/runtime/dialog/overlay/settings/settings.js @@ -31,7 +31,7 @@ var settingsClass = Java.extend(LauncherSettingsClass.static, { var settingsOverlay = { /* ===================== OVERLAY ===================== */ overlay: null, ramLabel: null, dirLabel: null, - deleteDirPressedAgain: false, + deleteDirPressedAgain: false, count = 0, initOverlay: function() { settingsOverlay.overlay = loadFXML("dialog/overlay/settings/settings.fxml"); @@ -92,25 +92,25 @@ var settingsOverlay = { // Lookup delete dir button var deleteDirButton = holder.lookup("#deleteDir"); deleteDirButton.setOnAction(function(event) { - if (!settings.deleteDirPressedAgain) { - settings.deleteDirPressedAgain = true; + if (!settingsOverlay.deleteDirPressedAgain) { + settingsOverlay.deleteDirPressedAgain = true; deleteDirButton.setText("Подтвердить"); return; } // Delete dir! - settings.deleteUpdatesDir(); - settings.deleteDirPressedAgain = false; - settings.count = settings.count+1; - if(settings.count>9){ + settingsOverlay.deleteUpdatesDir(); + settingsOverlay.deleteDirPressedAgain = false; + settingsOverlay.count = settingsOverlay.count+1; + if(settingsOverlay.count>9){ javafx.application.Platform.exit(); } deleteDirButton.setText( - settings.count>8?"Прощай :(": - (settings.count>7?"Я умираю!": - (settings.count>5?"DeathCry, спаси!": - (settings.count>4?"Умоляю, перестань!": - (settings.count>3?"Да хорош уже!":"Ещё раз") + settingsOverlay.count>8?"Прощай :(": + (settingsOverlay.count>7?"Я умираю!": + (settingsOverlay.count>5?"DeathCry, спаси!": + (settingsOverlay.count>4?"Умоляю, перестань!": + (settingsOverlay.count>3?"Да хорош уже!":"Ещё раз") )))); });