LemonUI.SHVDN3.dll updated. MenuPool.RefreshAll() is no longer required. Small changes
This commit is contained in:
@ -65,7 +65,6 @@ namespace CoopClient.Menus
|
|||||||
Util.SaveSettings();
|
Util.SaveSettings();
|
||||||
|
|
||||||
UsernameItem.AltTitle = newUsername;
|
UsernameItem.AltTitle = newUsername;
|
||||||
MenuPool.RefreshAll();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,7 +77,6 @@ namespace CoopClient.Menus
|
|||||||
Util.SaveSettings();
|
Util.SaveSettings();
|
||||||
|
|
||||||
ServerIpItem.AltTitle = newServerIp;
|
ServerIpItem.AltTitle = newServerIp;
|
||||||
MenuPool.RefreshAll();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,8 +106,6 @@ namespace CoopClient.Menus
|
|||||||
MainMenu.Items[3].Enabled = true;
|
MainMenu.Items[3].Enabled = true;
|
||||||
MainMenu.Items[3].Title = "Connect";
|
MainMenu.Items[3].Title = "Connect";
|
||||||
SubSettings.MainMenu.Items[1].Enabled = false;
|
SubSettings.MainMenu.Items[1].Enabled = false;
|
||||||
|
|
||||||
MenuPool.RefreshAll();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,14 @@ namespace CoopClient.Menus.Sub
|
|||||||
GetAllServer();
|
GetAllServer();
|
||||||
};
|
};
|
||||||
MainMenu.Closed += (object sender, EventArgs e) =>
|
MainMenu.Closed += (object sender, EventArgs e) =>
|
||||||
|
{
|
||||||
|
if (MainMenu.Items.Count > 0)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < MainMenu.Items.Count; i++)
|
for (int i = 0; i < MainMenu.Items.Count; i++)
|
||||||
{
|
{
|
||||||
MainMenu.Remove(MainMenu.Items[i]);
|
MainMenu.Remove(MainMenu.Items[i]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
private void GetAllServer()
|
private void GetAllServer()
|
||||||
@ -79,11 +82,18 @@ namespace CoopClient.Menus.Sub
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ResultItem.Title = "Download failed!";
|
ResultItem.Title = "Download failed!";
|
||||||
ResultItem.Description = ex.Message; // You have to use any key to see this message
|
ResultItem.Description = ex.Message;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (serverList == null)
|
if (serverList == null)
|
||||||
{
|
{
|
||||||
|
MainMenu.Items[0].Title = "Something went wrong!";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (serverList.Count == 0)
|
||||||
|
{
|
||||||
|
MainMenu.Items[0].Title = "No server was found!";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user