Guest User

Untitled

a guest
Oct 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Titanium.API.debug("Checking for reset-config\n");
  2. if ('reset-config' in Drillbit.argv) {
  3. Titanium.API.debug("************************************Inside reset-config\n");
  4. if (Titanium.App.Properties.removeProperty("windowX")) {
  5. Titanium.API.debug("Removed windowX\n");
  6. }
  7. if (Titanium.App.Properties.removeProperty("windowY")) {
  8. Titanium.API.debug("Removed windowY\n");
  9. }
  10. if (Titanium.App.Properties.removeProperty("height")) {
  11. Titanium.API.debug("Removed height\n");
  12. }
  13. if (Titanium.App.Properties.removeProperty("width")) {
  14. Titanium.API.debug("Removed width\n");
  15. }
  16. if (Titanium.App.Properties.removeProperty("consoleHeight")) {
  17. Titanium.API.debug("Removed consoleHeight\n");
  18. }
  19. if (Titanium.App.Properties.removeProperty("suitesStatus")) {
  20. Titanium.API.debug("Removed suitesStatus\n");
  21. }
  22. }
  23. else {
  24. Titanium.API.debug('Did not find --reset-config in arguments');
  25. }
  26. setupConfig();
Add Comment
Please, Sign In to add comment