added an Enable Network Traffic config value
If disabled - turn off 'check for update', 'login', 'get public profiles', and make public for other network aware resources issue: MatterHackers/MCCentral#4879 add ability to check Registry key to disable check for updates and login
This commit is contained in:
parent
1918d5987a
commit
1d2fe6823e
6 changed files with 43 additions and 31 deletions
|
|
@ -103,14 +103,17 @@ namespace MatterHackers.MatterControl
|
|||
});
|
||||
};
|
||||
|
||||
popupMenu.CreateSeparator();
|
||||
|
||||
menuItem = popupMenu.CreateMenuItem("Check For Update".Localize(), AggContext.StaticData.LoadIcon("update.png", 16, 16, menuTheme.InvertIcons));
|
||||
menuItem.Click += (s, e) => UiThread.RunOnIdle(() =>
|
||||
if (Application.EnableNetworkTraffic)
|
||||
{
|
||||
UpdateControlData.Instance.CheckForUpdate();
|
||||
DialogWindow.Show<CheckForUpdatesPage>();
|
||||
});
|
||||
popupMenu.CreateSeparator();
|
||||
|
||||
menuItem = popupMenu.CreateMenuItem("Check For Update".Localize(), AggContext.StaticData.LoadIcon("update.png", 16, 16, menuTheme.InvertIcons));
|
||||
menuItem.Click += (s, e) => UiThread.RunOnIdle(() =>
|
||||
{
|
||||
UpdateControlData.Instance.CheckForUpdate();
|
||||
DialogWindow.Show<CheckForUpdatesPage>();
|
||||
});
|
||||
}
|
||||
|
||||
popupMenu.CreateSeparator();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue