mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
remove automatic updates question on startup
This commit is contained in:
parent
a2b0d7f205
commit
b4bba6b679
@ -117,8 +117,6 @@ namespace XenAdmin
|
|||||||
|
|
||||||
private string[] _commandLineArgs;
|
private string[] _commandLineArgs;
|
||||||
|
|
||||||
private static readonly System.Windows.Forms.Timer CheckForUpdatesTimer = new System.Windows.Forms.Timer();
|
|
||||||
|
|
||||||
public readonly PluginManager PluginManager;
|
public readonly PluginManager PluginManager;
|
||||||
private readonly ContextMenuBuilder contextMenuBuilder;
|
private readonly ContextMenuBuilder contextMenuBuilder;
|
||||||
|
|
||||||
@ -595,49 +593,9 @@ namespace XenAdmin
|
|||||||
|
|
||||||
CloseSplashScreen();
|
CloseSplashScreen();
|
||||||
|
|
||||||
if (!Program.RunInAutomatedTestMode)
|
|
||||||
{
|
|
||||||
if (!Properties.Settings.Default.SeenAllowUpdatesDialog)
|
|
||||||
using (var dlg = new NoIconDialog(string.Format(Messages.ALLOWED_UPDATES_DIALOG_MESSAGE, BrandManager.BrandConsole, BrandManager.ProductBrand),
|
|
||||||
ThreeButtonDialog.ButtonYes, ThreeButtonDialog.ButtonNo)
|
|
||||||
{
|
|
||||||
HelpButton = true,
|
|
||||||
HelpNameSetter = "AllowUpdatesDialog",
|
|
||||||
ShowCheckbox = true,
|
|
||||||
CheckboxCaption = Messages.ALLOWED_UPDATES_DIALOG_CHECKBOX
|
|
||||||
})
|
|
||||||
{
|
|
||||||
var result = dlg.ShowDialog(this) == DialogResult.Yes;
|
|
||||||
|
|
||||||
Properties.Settings.Default.AllowXenCenterUpdates = result;
|
|
||||||
Properties.Settings.Default.SeenAllowUpdatesDialog = true;
|
|
||||||
|
|
||||||
if (result && dlg.IsCheckBoxChecked)
|
|
||||||
{
|
|
||||||
using (var dialog = new OptionsDialog(PluginManager))
|
|
||||||
{
|
|
||||||
dialog.SelectConnectionOptionsPage();
|
|
||||||
dialog.ShowDialog(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Settings.TrySaveSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
// start checkforupdates thread
|
|
||||||
CheckForUpdatesTimer.Interval = 1000 * 60 * 60 * 24; // 24 hours
|
|
||||||
CheckForUpdatesTimer.Tick += CheckForUpdatesTimer_Tick;
|
|
||||||
CheckForUpdatesTimer.Start();
|
|
||||||
}
|
|
||||||
|
|
||||||
ProcessCommand(_commandLineArgs);
|
ProcessCommand(_commandLineArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CheckForUpdatesTimer_Tick(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
//Updates.CheckForClientUpdates();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LoadTasksAsMeddlingActions(IXenConnection connection)
|
private void LoadTasksAsMeddlingActions(IXenConnection connection)
|
||||||
{
|
{
|
||||||
if (!connection.IsConnected || connection.Session == null)
|
if (!connection.IsConnected || connection.Session == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user