@@ -466,26 +466,31 @@ func renderInstaller() g.Widget {
466
466
Size ((w - 40 )/ 4 , 50 ),
467
467
Tooltip ("Patch the selected Discord Install" ),
468
468
),
469
- g .Style ().
470
- SetColor (g .StyleColorButton , DiscordRed ).
471
- To (
472
- g .Button ("Uninstall" ).
473
- OnClick (handleUnpatch ).
474
- Size ((w - 40 )/ 4 , 50 ),
475
- Tooltip ("Unpatch the selected Discord Install" ),
476
- ),
477
469
g .Style ().
478
470
SetColor (g .StyleColorButton , DiscordBlue ).
479
- SetDisabled (IsDevInstall || GithubError != nil ).
471
+ SetDisabled (GithubError != nil ).
480
472
To (
481
- g .Button (Ternary ( GithubError == nil && LatestHash == InstalledHash , "Re-Download Vencord" , "Update" ) ).
473
+ g .Button ("Reinstall / Repair" ).
482
474
OnClick (func () {
483
- if err := InstallLatestBuilds (); err == nil {
484
- g .OpenPopup ("#downloaded" )
475
+ if IsDevInstall {
476
+ handlePatch ()
477
+ } else {
478
+ err := InstallLatestBuilds ()
479
+ if err == nil {
480
+ handlePatch ()
481
+ }
485
482
}
486
483
}).
487
484
Size ((w - 40 )/ 4 , 50 ),
488
- Tooltip ("Update your local Vencord files" ),
485
+ Tooltip ("Reinstall & Update Vencord" ),
486
+ ),
487
+ g .Style ().
488
+ SetColor (g .StyleColorButton , DiscordRed ).
489
+ To (
490
+ g .Button ("Uninstall" ).
491
+ OnClick (handleUnpatch ).
492
+ Size ((w - 40 )/ 4 , 50 ),
493
+ Tooltip ("Unpatch the selected Discord Install" ),
489
494
),
490
495
g .Style ().
491
496
SetColor (g .StyleColorButton , Ternary (isOpenAsar , DiscordRed , DiscordGreen )).
@@ -498,7 +503,6 @@ func renderInstaller() g.Widget {
498
503
),
499
504
),
500
505
501
- InfoModal ("#downloaded" , "Successfully Downloaded" , "The Vencord files were successfully downloaded!" ),
502
506
InfoModal ("#patched" , "Successfully Patched" , "If Discord is still open, fully close it first.\n " +
503
507
"Then, start it and verify Vencord installed successfully by looking for its category in Discord Settings" ),
504
508
InfoModal ("#unpatched" , "Successfully Unpatched" , "If Discord is still open, fully close it first. Then start it again, it should be back to stock!" ),
0 commit comments