mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-25 12:49:26 +01:00
More minor cleanup/refactoring
This commit is contained in:
@@ -181,14 +181,8 @@ namespace Flowframes
|
||||
|
||||
void RemovePreviewIfDisabled()
|
||||
{
|
||||
if (!Config.GetBool(Config.Key.disablePreview))
|
||||
return;
|
||||
|
||||
foreach (TabPage tab in mainTabControl.TabPages)
|
||||
{
|
||||
if (tab.Text.Trim() == "Preview")
|
||||
mainTabControl.TabPages.Remove(tab);
|
||||
}
|
||||
if (Config.GetBool(Config.Key.disablePreview))
|
||||
mainTabControl.TabPages.Cast<TabPage>().Where(p => p.Name == previewTab.Name).ToList().ForEach(t => mainTabControl.TabPages.Remove(t));
|
||||
}
|
||||
|
||||
public HTTabControl GetMainTabControl() { return mainTabControl; }
|
||||
|
||||
Reference in New Issue
Block a user