mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Minor improvements for networking
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@226 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
4c258475ae
commit
ebc2053282
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user