Skip to content

Commit fe04881

Browse files
committed
Reorder buttons in promptWindowsSpeedUpSites dialog for clarity
1 parent f6dc553 commit fe04881

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎src/lib/windows-helpers.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ export async function promptWindowsSpeedUpSites( {
1919
return;
2020
}
2121

22-
const NOT_INTERESTED = __( "I'm not interested." );
23-
const MANUAL_UPDATE = __( "I'll do it my own by following the documentation." );
2422
const AUTOMATIC_UPDATE = __( 'Sounds good, do it for me.' );
23+
const MANUAL_UPDATE = __( "I'll do it my own by following the documentation." );
24+
const NOT_INTERESTED = __( "I'm not interested." );
2525

26-
const buttons = [ NOT_INTERESTED, MANUAL_UPDATE, AUTOMATIC_UPDATE ];
26+
const buttons = [ AUTOMATIC_UPDATE, NOT_INTERESTED, MANUAL_UPDATE ];
2727

2828
const { response } = await dialog.showMessageBox( {
2929
type: 'question',
@@ -32,6 +32,7 @@ export async function promptWindowsSpeedUpSites( {
3232
message: __(
3333
"If the Real-Time Protection Service of Windows Defender is enabled on your machine, it may slow down the process of creating and starting a site.\n\nTo enhance site speed, it's recommended adjusting the configuration accordingly.\n\nThe app can do this automatically for you, or alternatively, you can follow the documentation."
3434
),
35+
cancelId: buttons.indexOf( NOT_INTERESTED ),
3536
} );
3637

3738
switch ( response ) {

0 commit comments

Comments
 (0)