-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
- Added ContentWdw,MoveElemetToConcept #242
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Can you fix the few issues I've outlined ?
-
More globally, there are problems with the coding style (e.g. SMNatives.TContents, ContentsWdw, ...).
The easiest way to address this would be for you to install Resharper. It will load the project's coding style and automatically apply them. You can also run Resharper's "Refactor" function on existing code to reformat it (e.g. TNatives.TContents).
- For the rest, good work !
SuperMemoAssistant.sln
Outdated
@@ -141,7 +141,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{6A546934-EB9 | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SuperMemoAssistant.VersionBuilder", "src\Core\SuperMemoAssistant.VersionBuilder\SuperMemoAssistant.VersionBuilder.csproj", "{712820C7-6A72-4829-8D39-EDE2FDB32666}" | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SuperMemoAssistant.Plugins.OmniMemo", "src\Plugins\SuperMemoAssistant.Plugins.OmniMemo\src\SuperMemoAssistant.Plugins.OmniMemo\SuperMemoAssistant.Plugins.OmniMemo.csproj", "{F737AECE-9DAB-40EB-A2EF-DE97F43BA87C}" | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SuperMemoAssistant.Plugins.TestSetConceptNo", "..\SuperMemoAssistant.Plugins.TestSetConceptNo\src\SuperMemoAssistant.Plugins.TestSetConceptNo\SuperMemoAssistant.Plugins.TestSetConceptNo.csproj", "{BAC96BE4-668C-477C-B02B-C496147EEC3E}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove that Plugin ?
@@ -493,7 +498,7 @@ | |||
// TElWind::ForceRepetitionExt | |||
"ElWdw_ForceRepetitionExt": "55 8B EC 81 C4 ? ? ? ? 88 4D F7 89 55 F8 89 45 FC 8D 4D 81", | |||
// ???? TElWind::MIForgetClick or TElWind::MIJumpIntervalClick => Last call | |||
"ElWdw_RestoreLearningMode": "55 8B EC 51 89 45 FC 8B 45 FC 80 B8 ? ? ? ? ? 75 1E" | |||
"ElWdw_RestoreLearningMode": "55 8B EC 51 89 45 FC 8B 45 FC 80 B8 ? ? ? ? ? 75 1E", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There shouldn't be a comma at the end of the line
SuperMemoAssistant.sln
Outdated
@@ -141,7 +141,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{6A546934-EB9 | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SuperMemoAssistant.VersionBuilder", "src\Core\SuperMemoAssistant.VersionBuilder\SuperMemoAssistant.VersionBuilder.csproj", "{712820C7-6A72-4829-8D39-EDE2FDB32666}" | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SuperMemoAssistant.Plugins.OmniMemo", "src\Plugins\SuperMemoAssistant.Plugins.OmniMemo\src\SuperMemoAssistant.Plugins.OmniMemo\SuperMemoAssistant.Plugins.OmniMemo.csproj", "{F737AECE-9DAB-40EB-A2EF-DE97F43BA87C}" | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SuperMemoAssistant.Plugins.TestSetConceptNo", "..\SuperMemoAssistant.Plugins.TestSetConceptNo\src\SuperMemoAssistant.Plugins.TestSetConceptNo\SuperMemoAssistant.Plugins.TestSetConceptNo.csproj", "{BAC96BE4-668C-477C-B02B-C496147EEC3E}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to pull the latest version, the OmniMemo plugin is being erased
@@ -601,7 +601,7 @@ private static bool AddElement(ElementBuilder builder, out int elemId) | |||
// Has a concept been specified for the new element ? | |||
|
|||
if (builder.Concept != null) | |||
if (Core.SM.UI.ElementWdw.SetCurrentConcept(builder.Concept.Id) == false) | |||
if (Core.SM.UI.ContentWdw.MoveElementToConcept(this[elemId].Id,builder.Concept.Id) == false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a space after the comma ?
if (Core.SM.UI.ContentWdw.MoveElementToConcept(this[elemId].Id, builder.Concept.Id)
@@ -63,6 +64,7 @@ public SMNatives(NativeData nativeData) | |||
public TRegistry Registry { get; } | |||
public TFileSpace FileSpace { get; } | |||
public TQueue Queue { get; } | |||
public TContents Contents { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a space for alignment (coding style)
|
||
public ContentWdw() | ||
{ | ||
Core.SMA.OnSMStartedEvent += OnSMStartedEventAsync; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace with OnSMStarting ?
|
||
|
||
#region Methods | ||
private async Task OnSMStartedEventAsync(object sender, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace with OnSMStarting ?
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Update="Nerdbank.GitVersioning" Version="3.2.31" /> | ||
</ItemGroup> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was that added ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no clue how but will remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good except the versions.json. When you commit make sure to compare all the files one by one.
I've updated them and I'm accepting the PR thanks !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.