Skip to content

Commit b4bba6b

Browse files
committed
remove automatic updates question on startup
1 parent a2b0d7f commit b4bba6b

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

XenAdmin/MainWindow.cs

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ public partial class MainWindow : Form, ISynchronizeInvoke, IMainWindow
117117

118118
private string[] _commandLineArgs;
119119

120-
private static readonly System.Windows.Forms.Timer CheckForUpdatesTimer = new System.Windows.Forms.Timer();
121-
122120
public readonly PluginManager PluginManager;
123121
private readonly ContextMenuBuilder contextMenuBuilder;
124122

@@ -595,49 +593,9 @@ private void MainWindow_Shown(object sender, EventArgs e)
595593

596594
CloseSplashScreen();
597595

598-
if (!Program.RunInAutomatedTestMode)
599-
{
600-
if (!Properties.Settings.Default.SeenAllowUpdatesDialog)
601-
using (var dlg = new NoIconDialog(string.Format(Messages.ALLOWED_UPDATES_DIALOG_MESSAGE, BrandManager.BrandConsole, BrandManager.ProductBrand),
602-
ThreeButtonDialog.ButtonYes, ThreeButtonDialog.ButtonNo)
603-
{
604-
HelpButton = true,
605-
HelpNameSetter = "AllowUpdatesDialog",
606-
ShowCheckbox = true,
607-
CheckboxCaption = Messages.ALLOWED_UPDATES_DIALOG_CHECKBOX
608-
})
609-
{
610-
var result = dlg.ShowDialog(this) == DialogResult.Yes;
611-
612-
Properties.Settings.Default.AllowXenCenterUpdates = result;
613-
Properties.Settings.Default.SeenAllowUpdatesDialog = true;
614-
615-
if (result && dlg.IsCheckBoxChecked)
616-
{
617-
using (var dialog = new OptionsDialog(PluginManager))
618-
{
619-
dialog.SelectConnectionOptionsPage();
620-
dialog.ShowDialog(this);
621-
}
622-
}
623-
624-
Settings.TrySaveSettings();
625-
}
626-
627-
// start checkforupdates thread
628-
CheckForUpdatesTimer.Interval = 1000 * 60 * 60 * 24; // 24 hours
629-
CheckForUpdatesTimer.Tick += CheckForUpdatesTimer_Tick;
630-
CheckForUpdatesTimer.Start();
631-
}
632-
633596
ProcessCommand(_commandLineArgs);
634597
}
635598

636-
private void CheckForUpdatesTimer_Tick(object sender, EventArgs e)
637-
{
638-
//Updates.CheckForClientUpdates();
639-
}
640-
641599
private void LoadTasksAsMeddlingActions(IXenConnection connection)
642600
{
643601
if (!connection.IsConnected || connection.Session == null)

0 commit comments

Comments
 (0)