Skip to content

Commit

Permalink
Fix promotion banner showing after it was set to not show, only show …
Browse files Browse the repository at this point in the history
…when form is opened directly, allow exit without click.
  • Loading branch information
Andrew Sampson committed Mar 30, 2018
1 parent fbb22dc commit 8f7d1ed
Show file tree
Hide file tree
Showing 8 changed files with 530 additions and 496 deletions.
2 changes: 2 additions & 0 deletions BorderlessGaming/BorderlessGaming.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,15 @@
</EmbeddedResource>
<EmbeddedResource Include="Forms\MainWindow.en-US.resx">
<DependentUpon>MainWindow.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Forms\MainWindow.resx">
<DependentUpon>MainWindow.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Forms\MainWindow.zh-CN.resx">
<DependentUpon>MainWindow.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Rainway.resx">
<DependentUpon>Rainway.cs</DependentUpon>
Expand Down
145 changes: 45 additions & 100 deletions BorderlessGaming/Forms/MainWindow.Designer.cs

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions BorderlessGaming/Forms/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ public MainWindow()
_watcher = new ProcessWatcher(this);
InitializeComponent();
LanguageManager.Setup(toolStripLanguages);
if (Config.Instance.AppSettings.ShowAdOnStart)
{
var rainway = new Rainway { StartPosition = this.StartPosition, TopMost = true};
rainway.ShowDialog(this);
rainway.BringToFront();
}

}

public void AddFavoriteToList(Favorite fav)
Expand Down Expand Up @@ -961,8 +954,14 @@ private void MainWindow_Shown(object sender, EventArgs e)
if (Config.Instance.AppSettings.StartMinimized || Config.Instance.StartupOptions.Minimize)
{
Hide();
} else {
if (Config.Instance.AppSettings.ShowAdOnStart)
{
var rainway = new Rainway { StartPosition = this.StartPosition, TopMost = true };
rainway.ShowDialog(this);
rainway.BringToFront();
}
}

// initialize favorite list
foreach (var ni in Config.Instance.Favorites)
{
Expand Down
90 changes: 90 additions & 0 deletions BorderlessGaming/Forms/MainWindow.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,96 @@
<data name="toolsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>47, 27</value>
</data>
<data name="toolStripRainway.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAIQAAACWCAYAAAAfWiA3AAAABGdBTUEAALGPC/xhBQAAEwRJREFUeF7t
nQuQHMV5x0WU2NhxiB0nIbGTWOXIpMKBAsaS7m7ndYY4ED+wU1wSP3iYGJy4wEGJ/CjAZGNLdzvds3c2
tuMEKkSUjY0FMQ5xqXAZRyQxCraFiDAn3WlnpnskS4iXeCoIydLl+3p67k7H3mlnt3d3ZrZ/VV8hQNs9
j/90f9/XryUJA6P+csflX7NIeNii7CGT8nfK/6XpNYxK7d2Ox/c7Y3umbRpOO9Vo2qL8mOnxO4xK+Afy
r2l6AWM0erNJwycSMcwamx4a3zsNongWWgtyxvrwVPkTTZGxXXbLy8Uwa5bHp4c+v2/arEYBCOeK5Vdv
eqX8qaaIWDR8CluDemKYa9iNoHCgtfiBMRqcJ3+uKRp2JXi+EUEk5ozvAf8iOuLQaINRDU6TxWiKguUG
z6URBJrlJf4Fe8om7IYzRx9+nSxOk3eaEURijhcJYdiUT0A5Hxwenl4qi9XklVYEkZgztluYTaPvWlV/
UBatySMqBJHY0PhPMSp50fLCf+of3blMVqHJEyoFgZaEqbbH91kkXFtyJ39JVqXJA6oFkRiGqehfYBq8
5AV/IqvTZJ12CSIx4V+AOMxq9G3D88+R1WqySrsFEVscplqEHTQpGzfX7/hNWb0ma3RGELHF/oUIU6MS
Da8aWLPlVfIyNFmhk4JITKTBMSKhfItB/PPlpWiyQDpBYNMvQss6/y+9xWMj0VHoSm4fqkR98pI03aRR
QeBXDf/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/m63NNHqBrAhidnuh6N96YnZzVum2IGI/Qezmts0e9d8nL0vTLboliJl0M+H7LcLX6mHpjNANQchh
6UM25f/glLN7DmhP0klBzN1Mo5/4JXkJmizRCUEkm5JCGLnDqvAPDPfKKqg80k5BCD9hHDfdip40aAE2
0+gF2iMIFIJY+HLUqka3rhoJTpPVabKOakEk09xNj9+LG5rLajR5QZUgknwClLXd8cKL9PS1nNKqIBI/
waTsMdNjn8TjCGXRmjzSiiBEPqHKD9lueFO3z/DUKKIZQcTjDnJzzkoON+fULEyaGVNzN+c0K+GHcrs5
p2Zh4EVznH8w/+XPtdldVdgB22N/31ee0PmEomJV/LV4xE89IaAVcnNOzcI45YnXWIRtGfrCo6IlmBEC
hJHOeLw5p0XCd8i/rukFcCEstAJ3WzQ6gl2DmKhC2a7Cbs6paYxBL1hpUf4Bg7Dzzyqz18r/rOkZliz5
fxxJPk72nkr8AAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripRainway.Text" xml:space="preserve">
<value>Rainway</value>
</data>
<data name="toolStripUsageGuide.Size" type="System.Drawing.Size, System.Drawing">
<value>160, 22</value>
</data>
Expand Down
Loading

0 comments on commit 8f7d1ed

Please sign in to comment.