Skip to content

Commit

Permalink
Show version info in log section
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickziegler committed Feb 11, 2024
1 parent e3acbe6 commit fef6d94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12)

list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

project(mediacopier VERSION 2.1.0)
project(MediaCopier VERSION 2.1.0)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
5 changes: 4 additions & 1 deletion mediacopier-qt/source/gui/MediaCopierLogWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ MediaCopierLogWidget::MediaCopierLogWidget(QWidget *parent) :
QWidget(parent), ui(new Ui::MediaCopierLogWidget)
{
ui->setupUi(this);

ui->logText->setPlainText(
QString("%1 v%2")
.arg(mediacopier::MEDIACOPIER_PROJECT_NAME)
.arg(mediacopier::MEDIACOPIER_VERSION));
auto sink = std::make_shared<spdlog::sinks::qt_sink_st>(ui->logText, "appendPlainText");
spdlog::default_logger()->sinks().push_back(std::move(sink));
}
Expand Down

0 comments on commit fef6d94

Please sign in to comment.