Skip to content

Commit

Permalink
Remove last tab when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
theChaosCoder committed Oct 20, 2019
1 parent dd330ec commit 0a13925
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion VSRepoGUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial class MainWindow : Window, INotifyPropertyChanged
public List<string> consolestdL = new List<string>();

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; }
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 0a13925

Please sign in to comment.