Skip to content

Commit

Permalink
File extension *.ltn. Opening file -> marked as "not changed".
Browse files Browse the repository at this point in the history
  • Loading branch information
hsstraub committed Dec 13, 2020
1 parent 01fdfe2 commit 134af12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Source/GeneralOptionsDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ void GeneralOptionsDlg::loadFromMapping()
{
auto mappingInEdit = ((MainContentComponent*)getParentComponent())->getMappingInEdit();

buttonAfterTouchActive->setToggleState(mappingInEdit.afterTouchActive, juce::NotificationType::sendNotification);
buttonLightOnKeyStrokes->setToggleState(mappingInEdit.lightOnKeyStrokes, juce::NotificationType::sendNotification);
buttonAfterTouchActive->setToggleState(mappingInEdit.afterTouchActive, juce::NotificationType::dontSendNotification);
buttonLightOnKeyStrokes->setToggleState(mappingInEdit.lightOnKeyStrokes, juce::NotificationType::dontSendNotification);

btnInvertFootCtrl->setToggleState(mappingInEdit.invertFootController, juce::NotificationType::sendNotification);
txtExprCtrlSensivity->setText(String(mappingInEdit.expressionControllerSensivity));
btnInvertFootCtrl->setToggleState(mappingInEdit.invertFootController, juce::NotificationType::dontSendNotification);
txtExprCtrlSensivity->setText(String(mappingInEdit.expressionControllerSensivity), false);
}

//[/MiscUserCode]
Expand Down
12 changes: 6 additions & 6 deletions Source/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void TerpstraSysExApplication::anotherInstanceStarted(const String& commandLine)

bool TerpstraSysExApplication::openSysExMapping()
{
FileChooser chooser("Open a Lumatone key mapping", recentFiles.getFile(0).getParentDirectory(), "*.lmt");
FileChooser chooser("Open a Lumatone key mapping", recentFiles.getFile(0).getParentDirectory(), "*.ltn");
if (chooser.browseForFileToOpen())
{
currentFile = chooser.getResult();
Expand All @@ -160,7 +160,7 @@ bool TerpstraSysExApplication::saveSysExMapping()

bool TerpstraSysExApplication::saveSysExMappingAs()
{
FileChooser chooser("Lumatone Key Mapping Files", recentFiles.getFile(0).getParentDirectory(), "*.lmt");
FileChooser chooser("Lumatone Key Mapping Files", recentFiles.getFile(0).getParentDirectory(), "*.ltn");
if (chooser.browseForFileToSave(true))
{
currentFile = chooser.getResult();
Expand Down Expand Up @@ -320,15 +320,15 @@ bool TerpstraSysExApplication::openFromCurrentFile()

((MainContentComponent*)(mainWindow->getContentComponent()))->setData(keyMapping);

// Mark file as unchanged
setHasChangesToSave(false);

// Window title
updateMainTitle();

// Send configuraiton to controller, if connected
// Send configuration to controller, if connected
sendCurrentMappingToDevice();

// Mark file as unchanged
setHasChangesToSave(false);

// Add file to recent files list
recentFiles.addFile(currentFile);

Expand Down

0 comments on commit 134af12

Please sign in to comment.