From 7ad223b981ffddabb3674cfdde8e0701bb4fdcf4 Mon Sep 17 00:00:00 2001 From: nedlir Date: Thu, 21 Jul 2022 18:57:24 +0200 Subject: [PATCH] remove xml file if there is no security element --- src/officerbreaker/Controller.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/officerbreaker/Controller.java b/src/officerbreaker/Controller.java index 5a1f28e..3b40f7a 100644 --- a/src/officerbreaker/Controller.java +++ b/src/officerbreaker/Controller.java @@ -115,6 +115,7 @@ public class Controller { } try { + // show progress progressBarRemove.setVisible(true); progressBarRemove.setImage(progressOnGoing); @@ -138,6 +139,10 @@ public class Controller { progressBarRemove.setImage(progressFinished); } + else // if there is no security element in the xml file, there is no read-only protection on it + { + manipulator.removeXMLFile(); // cleans the xml extracted from origin file + } } catch (Exception e) { e.printStackTrace();