mirror of
https://github.com/osukey/osukey.git
synced 2025-07-22 19:00:05 +09:00
Minor formatting changes
This commit is contained in:
@ -419,7 +419,7 @@ namespace osu.Game.Online.Chat
|
|||||||
|
|
||||||
// Prevent the closedChannel list from exceeding the max size
|
// Prevent the closedChannel list from exceeding the max size
|
||||||
// by removing the oldest element
|
// by removing the oldest element
|
||||||
if(closedChannels.Count >= closedChannelsMaxSize)
|
if (closedChannels.Count >= closedChannelsMaxSize)
|
||||||
{
|
{
|
||||||
closedChannels.Remove(closedChannels[0]);
|
closedChannels.Remove(closedChannels[0]);
|
||||||
}
|
}
|
||||||
@ -435,15 +435,15 @@ namespace osu.Game.Online.Chat
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Opens the most recently closed channel that has not
|
/// Opens the most recently closed channel that has not
|
||||||
/// already been reopened
|
/// 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>
|
/// </summary>
|
||||||
public void JoinLastClosedChannel()
|
public void JoinLastClosedChannel()
|
||||||
{
|
{
|
||||||
if(closedChannels.Count <= 0)
|
if (closedChannels.Count <= 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -452,7 +452,7 @@ namespace osu.Game.Online.Chat
|
|||||||
closedChannels.Remove(lastClosedChannel);
|
closedChannels.Remove(lastClosedChannel);
|
||||||
// If the user already joined the channel, try the next
|
// If the user already joined the channel, try the next
|
||||||
// channel in the list
|
// channel in the list
|
||||||
if(joinedChannels.IndexOf(lastClosedChannel) >= 0)
|
if (joinedChannels.IndexOf(lastClosedChannel) >= 0)
|
||||||
{
|
{
|
||||||
JoinLastClosedChannel();
|
JoinLastClosedChannel();
|
||||||
}
|
}
|
||||||
|
@ -359,9 +359,9 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
if (e.ControlPressed)
|
if (e.ControlPressed)
|
||||||
{
|
{
|
||||||
if(e.ShiftPressed)
|
if (e.ShiftPressed)
|
||||||
{
|
{
|
||||||
switch(e.Key)
|
switch (e.Key)
|
||||||
{
|
{
|
||||||
case Key.T:
|
case Key.T:
|
||||||
channelManager.JoinLastClosedChannel();
|
channelManager.JoinLastClosedChannel();
|
||||||
|
Reference in New Issue
Block a user