Skip to content

Commit 58d92bf

Browse files
committed
Bump version number, and add version number indicator to UI
1 parent 8f19599 commit 58d92bf

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ set(CMAKE_CXX_STANDARD 20)
1717
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1818
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12 CACHE STRING "Minimum OS X deployment version" FORCE)
1919

20-
project(CRYPT_SYNTH_PLUGIN VERSION 2.0.1)
20+
project(CRYPT_SYNTH_PLUGIN VERSION 2.1.0)
2121

2222
add_subdirectory(JUCE)
2323

2424
juce_add_plugin(Crypt2SynthPlugin
25-
VERSION 2.0.1 # Set this if the plugin version is different to the project version
25+
VERSION 2.1.0 # Set this if the plugin version is different to the project version
2626
ICON_BIG ${CMAKE_CURRENT_SOURCE_DIR}/resources/crypt-icon.png # ICON_* arguments specify a path to an image file to use as an icon for the Standalone
2727
ICON_SMALL ${CMAKE_CURRENT_SOURCE_DIR}/resources/crypt-icon.png
2828
COMPANY_NAME Vitling # Specify the name of the plugin's author

src/CryptAudioProcessorEditor.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,8 @@ class CryptAudioProcessorEditor: public AudioProcessorEditor, public Button::Lis
639639

640640
std::unique_ptr<FileChooser> fileChooser;
641641

642+
Label versionNumber;
643+
642644
public:
643645

644646
/** Set up the editor */
@@ -726,6 +728,10 @@ class CryptAudioProcessorEditor: public AudioProcessorEditor, public Button::Lis
726728
addAndMakeVisible(keyboard);
727729
keyboard.setVisible(keyboardIsVisible);
728730
keyboard.setBounds({ 0,625,1000,keyboardHeight });
731+
732+
versionNumber.setText(String {"v"} + ProjectInfo::versionString, NotificationType::dontSendNotification);
733+
addAndMakeVisible(versionNumber);
734+
729735
resized();
730736

731737
}
@@ -850,6 +856,7 @@ class CryptAudioProcessorEditor: public AudioProcessorEditor, public Button::Lis
850856
rightLayout.layOutComponents(rightComponents, 4, rightBounds.getX(), rightBounds.getY(), rightBounds.getWidth(), rightBounds.getHeight(), true, true);
851857
global.setBounds(global.getBounds().withTrimmedRight(50));
852858
keyboardButton.setBounds({global.getRight(), global.getY() + 30, 50, 50});
859+
versionNumber.setBounds({global.getRight(), global.getY()+90, 50, 20});
853860
}
854861

855862

0 commit comments

Comments
 (0)