Skip to content

Commit

Permalink
this commit marks the release point of version 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Jan 2, 2024
1 parent db9e885 commit 0777ea7
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

set( PGR_VERSION "4.1.0" )
set( COPYRIGHT_YEARS "2021-2023" )
set( PGR_VERSION "4.2.0" )
set( COPYRIGHT_YEARS "2021-2024" )

INCLUDE(GNUInstallDirs)

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

copyright (c) 2021-2023
copyright (c) 2021-2024
name : Francis Banyikwa
email: mhogomchungu@gmail.com

Expand Down
10 changes: 10 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,13 @@ Version 1.2.0(April 1st, 2021)
Version 4.1.0(December 1st, 2023)
[All]
- Various changes and improvements.

Version 4.2.0(January 2nd, 2024)
[Windows]
- Fix a bug that caused older version of ffmpeg to be used when user install newer version of MD
that uses newer version of ffmpeg without first unistalling older version of MD that uses older
version of ffmpeg.
[All]
- Add ability show entries in the library tab in various orders.
- Add ability to filter and sort media list to easily choose which ones to download.
- Rework UI options that control checking for updates and autodownloads at startup.
14 changes: 11 additions & 3 deletions src/batchdownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include <QMetaObject>
#include <QClipboard>
#include <QFileDialog>
#include <QJsonArray>
#include <QJsonDocument>

batchdownloader::batchdownloader( const Context& ctx ) :
m_ctx( ctx ),
Expand Down Expand Up @@ -1990,8 +1992,9 @@ void batchdownloader::showList( batchdownloader::listType listType,
public:
events( batchdownloader& p,
batchdownloader::listType l,
const engines::engine& engine ) :
m_parent( p ),m_listType( l ),m_engine( engine )
const engines::engine& engine,
int row ) :
m_parent( p ),m_listType( l ),m_engine( engine ),m_row( row )
{
}
const engines::engine& engine()
Expand Down Expand Up @@ -2077,13 +2080,18 @@ void batchdownloader::showList( batchdownloader::listType listType,

m_parent.m_tableWidgetBDList.add( s,e ) ;
}

auto m = QJsonDocument::fromJson( a ) ;

m_parent.m_table.replace( m.array(),m_row ) ;
}
}
}
batchdownloader& m_parent ;
batchdownloader::listType m_listType ;
const engines::engine& m_engine ;
QByteArray m_listData ;
int m_row ;
} ;

auto term = m_terminator.setUp( m_ui.pbCancelBatchDownloder,&QPushButton::clicked,-1 ) ;
Expand All @@ -2095,7 +2103,7 @@ void batchdownloader::showList( batchdownloader::listType listType,

BatchLoggerWrapper< outPut > logger( m_ctx.logger(),outPut( *this,listType ) ) ;

events ev( *this,listType,engine ) ;
events ev( *this,listType,engine,row ) ;

auto ctx = utility::make_ctx( ev.move(),logger.move(),term.move(),ch ) ;

Expand Down
1 change: 1 addition & 0 deletions src/media-downloader.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<update_contact>mhogomchungu_AT_gmail.com</update_contact>
<content_rating type="oars-1.0" />
<releases>
<release version="4.2.0" date="2024-01-02"/>
<release version="4.1.0" date="2023-12-01"/>
<release version="4.0.0" date="2023-11-02"/>
<release version="3.4.0" date="2023-10-01"/>
Expand Down
5 changes: 5 additions & 0 deletions src/tableWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ void tableWidget::replace( tableWidget::entry e,int r,sizeHint s )
item->setText( m_items[ row ].uiText ) ;
}

void tableWidget::replace( const QJsonArray& array,int row )
{
m_items[ static_cast< size_t >( row ) ].mediaProperties = array ;
}

int tableWidget::addRow()
{
auto row = m_table.rowCount() ;
Expand Down
1 change: 1 addition & 0 deletions src/tableWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ class tableWidget
int rowCount() const ;
int currentRow() const ;
void replace( tableWidget::entry,int row,sizeHint = {} ) ;
void replace( const QJsonArray&,int row ) ;
void clear() ;
void setVisible( bool ) ;
void selectLast() ;
Expand Down

0 comments on commit 0777ea7

Please sign in to comment.