Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Dev/quieter scene switcher (#796)
Browse files Browse the repository at this point in the history
* default auto scene switcher should be false, unless a valid scene is set

* renamed validation test file so it won't accidentally delete real temp files

* These are our preferences lol
  • Loading branch information
StephenHodgson authored Mar 4, 2021
1 parent a144a86 commit 26ba7f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Editor/MixedRealityPreferences.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) XRTK. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System;
Expand Down
2 changes: 1 addition & 1 deletion Editor/Utilities/AutoSceneSwitcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private static void OnPlayModeStateChanged(PlayModeStateChange playModeState)
// loaded scene(s) may not contain a proper XRTK service locator game object configuration.
// Least we can do now is offer the user to auto configure the current scene, if none of the
// loaded scenes already contains a XRTK configuration.
if (!MixedRealityToolkit.IsInitialized && EditorPreferences.Get($"{nameof(AutoSceneSwitcher)}", true))
if (!MixedRealityToolkit.IsInitialized && EditorPreferences.Get($"{nameof(AutoSceneSwitcher)}", false))
{
var dialogResult = EditorUtility.DisplayDialogComplex(
title: "Missing the MixedRealityToolkit",
Expand Down
2 changes: 1 addition & 1 deletion Editor/Utilities/SymbolicLinks/SymbolicLinker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ private static bool VerifySymbolicLink(string targetAbsolutePath)
}
else
{
var tempFile = $"{targetAbsolutePath}/temp.txt";
var tempFile = $"{targetAbsolutePath}/temp_test.txt";

try
{
Expand Down

0 comments on commit 26ba7f2

Please sign in to comment.