Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Removed the "refresh whitelist" command, as it doesn't work / will no…
Browse files Browse the repository at this point in the history
…t work in a short timeframe.
  • Loading branch information
malware-dev committed May 7, 2023
1 parent fbb09a7 commit d6ea311
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 28 deletions.
44 changes: 23 additions & 21 deletions Source/MDK/Commands/RefreshWhitelistCacheCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,32 @@

namespace MDK.Commands
{
sealed class RefreshWhitelistCacheCommand : Command
{
public RefreshWhitelistCacheCommand(ExtendedPackage package) : base(package)
{ }
// Remember MDKPackage.vsct whentaking this back in
//
//sealed class RefreshWhitelistCacheCommand : Command
//{
// public RefreshWhitelistCacheCommand(ExtendedPackage package) : base(package)
// { }

public override Guid GroupId { get; } = CommandGroups.MDKGroup;
// public override Guid GroupId { get; } = CommandGroups.MDKGroup;

public override int Id { get; } = CommandIds.RefreshWhitelistCache;
// public override int Id { get; } = CommandIds.RefreshWhitelistCache;

protected override void OnBeforeQueryStatus()
{
var package = (MDKPackage)Package;
OleCommand.Visible = package.IsEnabled;
}
// protected override void OnBeforeQueryStatus()
// {
// var package = (MDKPackage)Package;
// OleCommand.Visible = package.IsEnabled;
// }

protected override void OnExecute()
{
ThreadHelper.ThrowIfNotOnUIThread();
var package = (MDKPackage)Package;
// protected override void OnExecute()
// {
// ThreadHelper.ThrowIfNotOnUIThread();
// var package = (MDKPackage)Package;

if (RefreshWhitelistCacheDialog.ShowDialog(new RefreshWhitelistCacheDialogModel(package, package.DTE)) == true)
{
VsShellUtilities.ShowMessageBox(ServiceProvider, Text.RefreshWhitelistCacheCommand_OnExecute_UpdatedWhitelistsDescription, Text.RefreshWhitelistCacheCommand_OnExecute_UpdatedWhitelistsTitle, OLEMSGICON.OLEMSGICON_INFO, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST);
}
}
}
// if (RefreshWhitelistCacheDialog.ShowDialog(new RefreshWhitelistCacheDialogModel(package, package.DTE)) == true)
// {
// VsShellUtilities.ShowMessageBox(ServiceProvider, Text.RefreshWhitelistCacheCommand_OnExecute_UpdatedWhitelistsDescription, Text.RefreshWhitelistCacheCommand_OnExecute_UpdatedWhitelistsTitle, OLEMSGICON.OLEMSGICON_INFO, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST);
// }
// }
//}
}
2 changes: 1 addition & 1 deletion Source/MDK/MDKPackage.GeneratedInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public partial class MDKPackage
/// <summary>
/// The current package version
/// </summary>
public static readonly Version Version = new Version("1.5.16");
public static readonly Version Version = new Version("1.5.17");

/// <summary>
/// The required IDE version
Expand Down
2 changes: 1 addition & 1 deletion Source/MDK/MDKPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ protected override async System.Threading.Tasks.Task InitializeAsync(Cancellatio
AddCommand(
new QuickDeploySolutionCommand(this),
new DeployProjectCommand(this),
new RefreshWhitelistCacheCommand(this),
//new RefreshWhitelistCacheCommand(this),
new CheckForUpdatesCommand(this),
new ProjectOptionsCommand(this),
new BlueprintManagerCommand(this),
Expand Down
8 changes: 4 additions & 4 deletions Source/MDK/MDKPackage.vsct
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@
<ButtonText>Script Manager</ButtonText>
</Strings>
</Button>
<Button guid="guidMDKCmdSet" id="RefreshWhitelistCacheCommandId" priority="0x0102" type="Button">
<!--<Button guid="guidMDKCmdSet" id="RefreshWhitelistCacheCommandId" priority="0x0102" type="Button">
<Parent guid="guidMDKCmdSet" id="MDKMenuGroup" />
<CommandFlag>DynamicVisibility</CommandFlag>
<!--<Icon guid="guidImages" id="bmpPic1" />-->
--><!--<Icon guid="guidImages" id="bmpPic1" />--><!--
<Strings>
<ButtonText>Refresh Whitelist Cache</ButtonText>
</Strings>
</Button>
</Button>-->
<Button guid="guidMDKCmdSet" id="CheckForUpdatesCommandId" priority="0x0103" type="Button">
<Parent guid="guidMDKCmdSet" id="MDKMenuGroup" />
<!--<Icon guid="guidImages" id="bmpPic1" />-->
Expand Down Expand Up @@ -163,7 +163,7 @@
<IDSymbol name="MDKMenuGroup" value="0x1020" />
<IDSymbol name="QuickDeploySolutionCommandId" value="0x0100" />
<IDSymbol name="ProjectOptionsCommandId" value="0x0101" />
<IDSymbol name="RefreshWhitelistCacheCommandId" value="0x0102" />
<!--<IDSymbol name="RefreshWhitelistCacheCommandId" value="0x0102" />-->
<IDSymbol name="CheckForUpdatesCommandId" value="0x0103" />
<IDSymbol name="DeployProjectCommandId" value="0x0104" />
<IDSymbol name="BlueprintManagerCommandId" value="0x0105" />
Expand Down
2 changes: 1 addition & 1 deletion Source/MDK/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="MDK.Morten Aune Lyrstad.e02b602e-3099-44a5-88c6-cb30cab978f6" Version="1.5.16" Language="en-US" Publisher="Morten Aune Lyrstad" />
<Identity Id="MDK.Morten Aune Lyrstad.e02b602e-3099-44a5-88c6-cb30cab978f6" Version="1.5.17" Language="en-US" Publisher="Morten Aune Lyrstad" />
<DisplayName>MDK/SE</DisplayName>
<Description xml:space="preserve">A toolkit to help with ingame script (programmable block) development for Keen Software House's space sandbox Space Engineers.

Expand Down

0 comments on commit d6ea311

Please sign in to comment.