Minor improvements for networking

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@226 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-01-06 20:29:45 +00:00
parent 4c258475ae
commit ebc2053282
2 changed files with 17 additions and 0 deletions

View File

@ -372,6 +372,21 @@ namespace Nikse.SubtitleEdit.Controls
if (IsExtraColumnVisible)
{
IsExtraColumnVisible = false;
if (IsAlternateTextColumnVisible)
ColumnIndexExtra = ColumnIndexTextAlternate + 1;
else
ColumnIndexExtra = ColumnIndexTextAlternate;
for (int i = 0; i < Items.Count; i++)
{
if (Items[i].SubItems.Count == ColumnIndexExtra + 1)
{
Items[i].SubItems[ColumnIndexExtra].Text = string.Empty;
Items[i].SubItems[ColumnIndexExtra].BackColor = this.BackColor;
Items[i].SubItems[ColumnIndexExtra].ForeColor = this.ForeColor;
}
}
Columns.RemoveAt(ColumnIndexExtra);
SubtitleListView_Resize(null, null);
}

View File

@ -7414,6 +7414,7 @@ namespace Nikse.SubtitleEdit.Forms
toolStripStatusNetworking.Text = _language.NetworkMode;
EnableDisableControlsNotWorkingInNetworkMode(false);
SubtitleListview1.ShowExtraColumn(_language.UserAndAction);
TimerWebServiceTick(null, null);
}
else
{
@ -7446,6 +7447,7 @@ namespace Nikse.SubtitleEdit.Forms
SubtitleListview1.Fill(_subtitle, _subtitleAlternate);
SubtitleListview1.SelectIndexAndEnsureVisible(0);
_change = true;
TimerWebServiceTick(null, null);
}
else
{