Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
FenPhoenix committed Jul 8, 2019
1 parent 3ac9685 commit 1512d1c
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
20 changes: 10 additions & 10 deletions AngelLoader/AngelLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -215,23 +215,23 @@
<Compile Include="CustomControls\RichTextBoxCustom\Workarounds.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="CustomControls\SettingsForm\FMDisplayPage.cs">
<Compile Include="CustomControls\SettingsPages\FMDisplayPage.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="CustomControls\SettingsForm\FMDisplayPage.Designer.cs">
<Compile Include="CustomControls\SettingsPages\FMDisplayPage.Designer.cs">
<DependentUpon>FMDisplayPage.cs</DependentUpon>
</Compile>
<Compile Include="CustomControls\SettingsForm\Interfaces.cs" />
<Compile Include="CustomControls\SettingsForm\OtherPage.cs">
<Compile Include="CustomControls\SettingsPages\Interfaces.cs" />
<Compile Include="CustomControls\SettingsPages\OtherPage.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="CustomControls\SettingsForm\OtherPage.Designer.cs">
<Compile Include="CustomControls\SettingsPages\OtherPage.Designer.cs">
<DependentUpon>OtherPage.cs</DependentUpon>
</Compile>
<Compile Include="CustomControls\SettingsForm\PathsPage.cs">
<Compile Include="CustomControls\SettingsPages\PathsPage.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="CustomControls\SettingsForm\PathsPage.Designer.cs">
<Compile Include="CustomControls\SettingsPages\PathsPage.Designer.cs">
<DependentUpon>PathsPage.cs</DependentUpon>
</Compile>
<Compile Include="CustomControls\Static_LazyLoaded\AddTagLLMenu.cs" />
Expand Down Expand Up @@ -361,13 +361,13 @@
<EmbeddedResource Include="CustomControls\ProgressPanel.resx">
<DependentUpon>ProgressPanel.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="CustomControls\SettingsForm\FMDisplayPage.resx">
<EmbeddedResource Include="CustomControls\SettingsPages\FMDisplayPage.resx">
<DependentUpon>FMDisplayPage.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="CustomControls\SettingsForm\OtherPage.resx">
<EmbeddedResource Include="CustomControls\SettingsPages\OtherPage.resx">
<DependentUpon>OtherPage.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="CustomControls\SettingsForm\PathsPage.resx">
<EmbeddedResource Include="CustomControls\SettingsPages\PathsPage.resx">
<DependentUpon>PathsPage.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\FilterRatingForm.resx">
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Windows.Forms;
using AngelLoader.Common.Utility;

namespace AngelLoader.CustomControls.SettingsForm
namespace AngelLoader.CustomControls.SettingsPages
{
public partial class FMDisplayPage : UserControl, Interfaces.ISettingsPage
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AngelLoader.CustomControls.SettingsForm
namespace AngelLoader.CustomControls.SettingsPages
{
internal class Interfaces
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Windows.Forms;
using AngelLoader.Common.Utility;

namespace AngelLoader.CustomControls.SettingsForm
namespace AngelLoader.CustomControls.SettingsPages
{
public partial class OtherPage : UserControl, Interfaces.ISettingsPage
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Windows.Forms;
using AngelLoader.Common.Utility;

namespace AngelLoader.CustomControls.SettingsForm
namespace AngelLoader.CustomControls.SettingsPages
{
public partial class PathsPage : UserControl, Interfaces.ISettingsPage
{
Expand Down
6 changes: 6 additions & 0 deletions AngelLoader/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2777,6 +2777,9 @@ private async Task DisplaySelectedFM(bool refreshReadme = false)

using (new DisableEvents(this)) ChooseReadmeComboBox.ClearFullItems();

// Debug
fm.SelectedReadme = "";

if (!fm.SelectedReadme.IsEmpty())
{
if (readmeFiles.Count > 1)
Expand Down Expand Up @@ -2805,6 +2808,9 @@ private async Task DisplaySelectedFM(bool refreshReadme = false)
{
var safeReadme = Core.DetectSafeReadme(readmeFiles, fm.Title);

// Debug
safeReadme = "";

if (!safeReadme.IsEmpty())
{
fm.SelectedReadme = safeReadme;
Expand Down
6 changes: 0 additions & 6 deletions AngelLoader/Forms/MainForm_InitManual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1674,11 +1674,7 @@ private void InitComponentManual()
//
// ChooseReadmePanel
//
// PERF_TODO: AutoSizeMode is GrowAndShrink, so can we get rid of the size set?
// Should it even be autosizing at all...? (I don't think so?!)
ChooseReadmePanel.Anchor = AnchorStyles.None;
ChooseReadmePanel.AutoSize = true;
ChooseReadmePanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
ChooseReadmePanel.Controls.Add(ChooseReadmeOKFLP);
ChooseReadmePanel.Controls.Add(ChooseReadmeListBox);
// This gets centered later so no location is specified here
Expand All @@ -1698,7 +1694,6 @@ private void InitComponentManual()
//
ChooseReadmeButton.Anchor = AnchorStyles.Top | AnchorStyles.Right;
ChooseReadmeButton.AutoSize = true;
ChooseReadmeButton.Location = new Point(245, 0);
ChooseReadmeButton.Margin = new Padding(0);
ChooseReadmeButton.Padding = new Padding(6, 0, 6, 0);
ChooseReadmeButton.Height = 23;
Expand All @@ -1709,7 +1704,6 @@ private void InitComponentManual()
// ChooseReadmeListBox
//
ChooseReadmeListBox.FormattingEnabled = true;
ChooseReadmeListBox.Location = new Point(0, 0);
ChooseReadmeListBox.Size = new Size(320, 134);
ChooseReadmeListBox.TabIndex = 47;
//
Expand Down
4 changes: 2 additions & 2 deletions AngelLoader/Forms/SettingsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
using AngelLoader.Common.DataClasses;
using AngelLoader.Common.Utility;
using AngelLoader.CustomControls;
using AngelLoader.CustomControls.SettingsForm;
using AngelLoader.CustomControls.SettingsPages;
using AngelLoader.Properties;
using AngelLoader.WinAPI.Dialogs;
using static AngelLoader.Common.Logger;
using static AngelLoader.CustomControls.SettingsForm.Interfaces;
using static AngelLoader.CustomControls.SettingsPages.Interfaces;

namespace AngelLoader.Forms
{
Expand Down

0 comments on commit 1512d1c

Please sign in to comment.