From b5b45a8983e19fb1fa4b8178298ff31936baf1be Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Fri, 17 Aug 2018 02:40:04 -0500 Subject: [PATCH] Condense code paths for a section --- DS4Windows/DS4Forms/DS4Form.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index a40f99a..ed02469 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -171,17 +171,15 @@ namespace DS4Windows } catch { } MessageBox.Show("Copy complete, please relaunch DS4Windows and remove settings from Program Directory", "DS4Windows"); - appdatapath = null; - Close(); - return; } else { MessageBox.Show("DS4Windows cannot edit settings here, This will now close", "DS4Windows"); - appdatapath = null; - Close(); - return; } + + appdatapath = null; + Close(); + return; } cBUseWhiteIcon.Checked = UseWhiteIcon;