From a58b3ff38bb572a2432ed799cb1a8cfed64e066d Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 25 Oct 2018 09:31:10 +0100 Subject: [PATCH] Projucer: Added a "Reset to Defaults" button to the global paths window --- .../jucer_GlobalPathsWindowComponent.h | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/extras/Projucer/Source/Application/Windows/jucer_GlobalPathsWindowComponent.h b/extras/Projucer/Source/Application/Windows/jucer_GlobalPathsWindowComponent.h index e35adf7070..9b5e538f24 100644 --- a/extras/Projucer/Source/Application/Windows/jucer_GlobalPathsWindowComponent.h +++ b/extras/Projucer/Source/Application/Windows/jucer_GlobalPathsWindowComponent.h @@ -66,6 +66,9 @@ public: addChildComponent (rescanUserPathButton); rescanUserPathButton.onClick = [] { ProjucerApplication::getApp().rescanUserPathModules(); }; + addAndMakeVisible (resetToDefaultsButton); + resetToDefaultsButton.onClick = [this] { resetCurrentOSPathsToDefaults(); }; + updateValues(); updateFilePathPropertyComponents(); } @@ -127,6 +130,8 @@ public: isFirst = false; } + + resetToDefaultsButton.setBounds (b.removeFromBottom (35).reduced (150, 0)); } void highlightJUCEPath() @@ -149,8 +154,9 @@ private: OwnedArray