- Timestamp:
- 05/06/19 14:02:50 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameUtils.java
r1332 r1355 45 45 import java.util.List; 46 46 import java.util.Map; 47 import java.util.Scanner; 47 48 import java.util.function.Consumer; 48 49 import java.util.jar.JarEntry; … … 1831 1832 */ 1832 1833 public static void extractResources(boolean force) { 1833 1834 1834 if (UserSettings.PublicAndPrivateResources) { 1835 1835 // Extract private resources … … 1855 1855 1856 1856 if (extracted) { 1857 @SuppressWarnings("resource") 1858 Scanner in = new Scanner(System.in); 1859 System.out.println("Extracting resources...In order to use authentication, you need a new default profile frameset."); 1860 System.out.println("This is a destructive process, your existing default profile frameset (if it exists) will be deleted."); 1861 System.out.print("Do you want to proceed? y/N:"); 1862 System.out.flush(); 1863 String answer = in.nextLine(); 1864 if (!answer.toLowerCase().startsWith("y")) { 1865 System.out.println("Exiting..."); 1866 System.exit(1); 1867 } 1868 1857 1869 // Ensure the default profile is 'update to date'. 1858 1870 //NB: this limits the potential for those running old regime with authentication the ability to customise the default profile.
Note:
See TracChangeset
for help on using the changeset viewer.