From 16299772b71f9f7024f943f19aa760aff52b6c7f Mon Sep 17 00:00:00 2001
From: sphere <spherallic@gmail.com>
Date: Mon, 1 Mar 2021 11:28:20 +0100
Subject: [PATCH] Disable Sound Modes by default since they're irrelevant for
 SRB2, and update the link in the Error pop-up.

---
 Source/Core/GZBuilder/Windows/ExceptionDialog.cs            | 2 +-
 Source/Core/GZBuilder/Windows/ExceptionDialog.designer.cs   | 4 ++--
 Source/Plugins/SoundPropagationMode/SoundEnvironmentMode.cs | 4 ++--
 Source/Plugins/SoundPropagationMode/SoundPropagationMode.cs | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Source/Core/GZBuilder/Windows/ExceptionDialog.cs b/Source/Core/GZBuilder/Windows/ExceptionDialog.cs
index 91faba69..55d10566 100644
--- a/Source/Core/GZBuilder/Windows/ExceptionDialog.cs
+++ b/Source/Core/GZBuilder/Windows/ExceptionDialog.cs
@@ -190,7 +190,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.Windows
 		{
 			try 
 			{
-				System.Diagnostics.Process.Start("http://forum.zdoom.org/viewtopic.php?f=3&t=32392&start=9999999");
+				System.Diagnostics.Process.Start("https://git.do.srb2.org/STJr/ZoneBuilder/issues");
 			} 
 			catch(Exception) 
 			{
diff --git a/Source/Core/GZBuilder/Windows/ExceptionDialog.designer.cs b/Source/Core/GZBuilder/Windows/ExceptionDialog.designer.cs
index 576854f8..b7ea478a 100644
--- a/Source/Core/GZBuilder/Windows/ExceptionDialog.designer.cs
+++ b/Source/Core/GZBuilder/Windows/ExceptionDialog.designer.cs
@@ -102,7 +102,7 @@
 			// threadLink
 			// 
 			this.threadLink.AutoSize = true;
-			this.threadLink.LinkArea = new System.Windows.Forms.LinkArea(101, 28);
+			this.threadLink.LinkArea = new System.Windows.Forms.LinkArea(97, 26);
 			this.threadLink.LinkColor = System.Drawing.SystemColors.HotTrack;
 			this.threadLink.Location = new System.Drawing.Point(77, 210);
 			this.threadLink.Name = "threadLink";
@@ -110,7 +110,7 @@
 			this.threadLink.TabIndex = 8;
 			this.threadLink.TabStop = true;
 			this.threadLink.Text = "You can help fixing this error if you provide the ways to reproduce it \r\nand the " +
-				"error report at the official thread at ZDoom.org";
+				"error report at Zone Builder's repository.";
 			this.threadLink.UseCompatibleTextRendering = true;
 			this.threadLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.threadLink_LinkClicked);
 			// 
diff --git a/Source/Plugins/SoundPropagationMode/SoundEnvironmentMode.cs b/Source/Plugins/SoundPropagationMode/SoundEnvironmentMode.cs
index 73397856..a687aeb0 100644
--- a/Source/Plugins/SoundPropagationMode/SoundEnvironmentMode.cs
+++ b/Source/Plugins/SoundPropagationMode/SoundEnvironmentMode.cs
@@ -37,9 +37,9 @@ namespace CodeImp.DoomBuilder.SoundPropagationMode
 			  ButtonImage = "ZDoomSoundEnvironment.png",	// Image resource name for the button
 			  ButtonOrder = int.MinValue + 502,	// Position of the button (lower is more to the left)
 			  ButtonGroup = "000_editing",
-			  UseByDefault = true,
 			  SafeStartMode = false,
-			  Volatile = false)]
+			  Volatile = false,
+			  Optional = true)]
 
 	public class SoundEnvironmentMode : ClassicMode
 	{
diff --git a/Source/Plugins/SoundPropagationMode/SoundPropagationMode.cs b/Source/Plugins/SoundPropagationMode/SoundPropagationMode.cs
index 2318b954..c0c5a148 100644
--- a/Source/Plugins/SoundPropagationMode/SoundPropagationMode.cs
+++ b/Source/Plugins/SoundPropagationMode/SoundPropagationMode.cs
@@ -34,9 +34,9 @@ namespace CodeImp.DoomBuilder.SoundPropagationMode
 			  ButtonImage = "SoundPropagationIcon.png",	// Image resource name for the button
 			  ButtonOrder = int.MinValue + 501,	// Position of the button (lower is more to the left)
 			  ButtonGroup = "000_editing",
-			  UseByDefault = true,
 			  SafeStartMode = false,
-			  Volatile = false)]
+			  Volatile = false,
+			  Optional = true)]
 
 	public class SoundPropagationMode : ClassicMode
 	{
-- 
GitLab