Changeset 1355 for trunk


Ignore:
Timestamp:
05/06/19 14:02:50 (5 years ago)
Author:
bln4
Message:

Added peace of mind for those running old regime and wanting to add authentication mode that need to overwrite their existing default profile frameset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameUtils.java

    r1332 r1355  
    4545import java.util.List;
    4646import java.util.Map;
     47import java.util.Scanner;
    4748import java.util.function.Consumer;
    4849import java.util.jar.JarEntry;
     
    18311832         */
    18321833        public static void extractResources(boolean force) {
    1833                
    18341834                if (UserSettings.PublicAndPrivateResources) {
    18351835                        // Extract private resources
     
    18551855                       
    18561856                        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                               
    18571869                                // Ensure the default profile is 'update to date'. 
    18581870                                //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.