From 98473487bc8b3979a8460a17ff90f8158b4789e8 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 14 Jun 2022 19:51:38 +0200 Subject: [PATCH] Fix Editor Analytics tracking option file SetupStyle #727 --- Source/Editor/Options/OptionsModule.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Editor/Options/OptionsModule.cs b/Source/Editor/Options/OptionsModule.cs index 410a369b4..0b4476e0a 100644 --- a/Source/Editor/Options/OptionsModule.cs +++ b/Source/Editor/Options/OptionsModule.cs @@ -164,16 +164,16 @@ namespace FlaxEditor.Options var editorAnalyticsTrackingFile = Path.Combine(Editor.LocalCachePath, "noTracking"); if (Options.General.EnableEditorAnalytics) { - if (!File.Exists(editorAnalyticsTrackingFile)) + if (File.Exists(editorAnalyticsTrackingFile)) { - File.WriteAllText(editorAnalyticsTrackingFile, "Don't track me, please."); + File.Delete(editorAnalyticsTrackingFile); } } else { - if (File.Exists(editorAnalyticsTrackingFile)) + if (!File.Exists(editorAnalyticsTrackingFile)) { - File.Delete(editorAnalyticsTrackingFile); + File.WriteAllText(editorAnalyticsTrackingFile, "Don't track me, please."); } } }