[gnome-boxes/allow-express-installs-without-product-key] unnattended-setup-box: Don't require product-key for express installs




commit dc7aebfcd2eae2db555fab2390df14944bc5b125
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Mar 23 14:45:04 2022 +0100

    unnattended-setup-box: Don't require product-key for express installs
    
    Windows 10 doesn't require a product-key to be provided during the
    installation process. The product-key can be provided after the
    installation.
    
    Since Microsoft can limit the number of uses of a product-key, let's
    not force our users to enter a product-key during an express-installation
    if they don't want it.
    
    Fixes #474

 src/unattended-setup-box.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/unattended-setup-box.vala b/src/unattended-setup-box.vala
index 8fb99296..3d193167 100644
--- a/src/unattended-setup-box.vala
+++ b/src/unattended-setup-box.vala
@@ -11,9 +11,7 @@
     public bool ready_for_express {
         get {
             return username != "" &&
-                   !needs_password &&
-                   (product_key_format == null ||
-                    product_key_entry.text_length == product_key_format.length);
+                   !needs_password;
         }
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]