mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 06:27:19 +01:00
Merge branch 'master' of https://github.com/tgstation/tgstation-server-tools into PRManager
This commit is contained in:
@@ -43,11 +43,7 @@ namespace TGControlPanel
|
||||
}
|
||||
Panels.SelectedIndexChanged += Panels_SelectedIndexChanged;
|
||||
Panels.SelectedIndex += Math.Min(Properties.Settings.Default.LastPageIndex, Panels.TabCount - 1);
|
||||
InitRepoPage();
|
||||
InitBYONDPage();
|
||||
InitServerPage();
|
||||
LoadChatPage();
|
||||
InitStaticPage();
|
||||
UpdateSelectedPanel();
|
||||
InstancesInUse.Add(I.InstanceName, this);
|
||||
}
|
||||
|
||||
@@ -67,7 +63,10 @@ namespace TGControlPanel
|
||||
Panels.Height = ClientSize.Height - 20;
|
||||
}
|
||||
|
||||
private void Panels_SelectedIndexChanged(object sender, EventArgs e)
|
||||
/// <summary>
|
||||
/// Updates the content of <see cref="TabControl.SelectedTab"/> of <see cref="Panels"/>
|
||||
/// </summary>
|
||||
void UpdateSelectedPanel()
|
||||
{
|
||||
switch (Panels.SelectedIndex)
|
||||
{
|
||||
@@ -87,6 +86,11 @@ namespace TGControlPanel
|
||||
Properties.Settings.Default.LastPageIndex = Panels.SelectedIndex;
|
||||
}
|
||||
|
||||
void Panels_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
UpdateSelectedPanel();
|
||||
}
|
||||
|
||||
bool CheckAdminWithWarning()
|
||||
{
|
||||
if (!Interface.ConnectToInstance().HasFlag(ConnectivityLevel.Administrator))
|
||||
|
||||
Reference in New Issue
Block a user