From 0a13925c5eb5fa7838c5d3728c0c50c1ecfbad46 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 20 Oct 2019 12:30:53 +0200 Subject: [PATCH] Remove last tab when necessary --- VSRepoGUI/MainWindow.xaml.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/VSRepoGUI/MainWindow.xaml.cs b/VSRepoGUI/MainWindow.xaml.cs index d6da20f..93f09e2 100644 --- a/VSRepoGUI/MainWindow.xaml.cs +++ b/VSRepoGUI/MainWindow.xaml.cs @@ -39,7 +39,7 @@ public partial class MainWindow : Window, INotifyPropertyChanged public List consolestdL = new List(); public string version = "v0.9"; - public bool IsVsrepo { get; set; } = false; // else AVSRepo for Avisynth + public bool IsVsrepo { get; set; } = true; // else AVSRepo for Avisynth public string AppTitle { get; set; } public bool Win64 { get; set; } public PluginPaths Avs64Paths { get; set; } @@ -178,6 +178,9 @@ private void InitAvisynth() } else // Portable mode, valid avsrepogui.json found { + //TabablzControl doesn't support hiding or collapsing Tabitems. Hide "Settings" (last) tab if we are in avisynth portable mode + TabablzControl.Items.RemoveAt(TabablzControl.Items.Count - 1); + LabelPortable.Visibility = Visibility.Visible; vsrepo.SetPortableMode(true); vsrepo.python_bin = settings.Bin; @@ -211,6 +214,9 @@ private void InitAvisynth() private void InitVapoursynth() { + //TabablzControl doesn't support hiding or collapsing Tabitems. Hide "Settings" (last) tab if we are in vapoursynth mode + TabablzControl.Items.RemoveAt(TabablzControl.Items.Count - 1); + var settings = new PortableSettings().LoadLocalFile(); var args = Environment.GetCommandLineArgs();