diff --git a/Dependencies/stompbox b/Dependencies/stompbox index 625282d..8e726fe 160000 --- a/Dependencies/stompbox +++ b/Dependencies/stompbox @@ -1 +1 @@ -Subproject commit 625282d0dd8e9c94f1ee7c58d471f22c5632f34a +Subproject commit 8e726feffe47902c0f09be9facc1126a032f5cb3 diff --git a/StompboxShared/Interface/AudioFilePlayerInterface.cs b/StompboxShared/Interface/AudioFilePlayerInterface.cs index 9fde708..5760632 100644 --- a/StompboxShared/Interface/AudioFilePlayerInterface.cs +++ b/StompboxShared/Interface/AudioFilePlayerInterface.cs @@ -19,7 +19,7 @@ protected override void AddControls(Dock dock) vStack.Children.Add(new TextBlock(Plugin.Name) { HorizontalAlignment = EHorizontalAlignment.Center, TextColor = foregroundColor }); - vStack.Children.Add(CreateFileControl(Plugin.Parameters[0], true)); + vStack.Children.Add(CreateFileControl(Plugin.Parameters[0])); UIElement levelControl = CreateControl(Plugin.Parameters[1]); levelControl.HorizontalAlignment = EHorizontalAlignment.Center; diff --git a/StompboxShared/Interface/PluginInterface.cs b/StompboxShared/Interface/PluginInterface.cs index c98120a..f5259d1 100644 --- a/StompboxShared/Interface/PluginInterface.cs +++ b/StompboxShared/Interface/PluginInterface.cs @@ -430,8 +430,10 @@ protected UIElement CreateEnumControl(PluginParameter parameter) return enumInterface; } - protected UIElement CreateFileControl(PluginParameter parameter, bool showOpenFolder) + protected UIElement CreateFileControl(PluginParameter parameter) { + bool showOpenFolder = !StompboxClient.Instance.InClientMode; + int offset = (showOpenFolder ? 1 : 0); FileInterface fileInterface = new FileInterface(showOpenFolder ? parameter.FilePath : null, parameter.EnumValues, foregroundColor) @@ -716,7 +718,7 @@ protected override void AddControls(Dock dock) } else if (parameter.ParameterType == EParameterType.File) { - textStack.Children.Add(CreateFileControl(parameter, true)); + textStack.Children.Add(CreateFileControl(parameter)); haveTextParams = true; }