mirror of https://github.com/ppy/osu
Minor formatting changes
This commit is contained in:
parent
2863187b16
commit
08a2cdaf8d
|
@ -419,7 +419,7 @@ public void LeaveChannel(Channel channel)
|
|||
|
||||
// Prevent the closedChannel list from exceeding the max size
|
||||
// by removing the oldest element
|
||||
if(closedChannels.Count >= closedChannelsMaxSize)
|
||||
if (closedChannels.Count >= closedChannelsMaxSize)
|
||||
{
|
||||
closedChannels.Remove(closedChannels[0]);
|
||||
}
|
||||
|
@ -435,15 +435,15 @@ public void LeaveChannel(Channel channel)
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Opens the most recently closed channel that has not
|
||||
/// already been reopened
|
||||
/// Works similarly to reopening last closed tab on a web browser.
|
||||
/// Works similarly to reopening the last closed tab on a web browser.
|
||||
/// </summary>
|
||||
public void JoinLastClosedChannel()
|
||||
{
|
||||
if(closedChannels.Count <= 0)
|
||||
if (closedChannels.Count <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -452,7 +452,7 @@ public void JoinLastClosedChannel()
|
|||
closedChannels.Remove(lastClosedChannel);
|
||||
// If the user already joined the channel, try the next
|
||||
// channel in the list
|
||||
if(joinedChannels.IndexOf(lastClosedChannel) >= 0)
|
||||
if (joinedChannels.IndexOf(lastClosedChannel) >= 0)
|
||||
{
|
||||
JoinLastClosedChannel();
|
||||
}
|
||||
|
|
|
@ -359,9 +359,9 @@ protected override bool OnKeyDown(KeyDownEvent e)
|
|||
|
||||
if (e.ControlPressed)
|
||||
{
|
||||
if(e.ShiftPressed)
|
||||
if (e.ShiftPressed)
|
||||
{
|
||||
switch(e.Key)
|
||||
switch (e.Key)
|
||||
{
|
||||
case Key.T:
|
||||
channelManager.JoinLastClosedChannel();
|
||||
|
|
Loading…
Reference in New Issue