File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.21 FATAL_ERROR)
2
- project (vpktool VERSION 2.2.0 HOMEPAGE_URL "https://github.com/craftablescience/VPKTool" )
2
+ project (vpktool VERSION 2.2.1 HOMEPAGE_URL "https://github.com/craftablescience/VPKTool" )
3
3
set (CMAKE_CXX_STANDARD 17)
4
4
5
5
option (VPKTOOL_BUILD_GUI "Build VPKTool GUI application" ON )
@@ -60,6 +60,7 @@ if(VPKTOOL_BUILD_GUI)
60
60
set (CMAKE_AUTORCC ON )
61
61
62
62
set (VPKTOOL_PROJECT_VERSION ${CMAKE_PROJECT_VERSION} CACHE STRING "" FORCE)
63
+ set (VPKTOOL_PROJECT_HOMEPAGE ${CMAKE_PROJECT_HOMEPAGE_URL} CACHE STRING "" FORCE)
63
64
configure_file (
64
65
"${CMAKE_CURRENT_SOURCE_DIR} /src/gui/Config.h.in"
65
66
"${CMAKE_CURRENT_SOURCE_DIR} /src/gui/Config.h"
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
3
#cmakedefine VPKTOOL_PROJECT_VERSION "@VPKTOOL_PROJECT_VERSION@"
4
+ #cmakedefine VPKTOOL_PROJECT_HOMEPAGE "@VPKTOOL_PROJECT_HOMEPAGE@"
Original file line number Diff line number Diff line change 3
3
#include < cstdlib>
4
4
5
5
#include < QApplication>
6
+ #include < QDesktopServices>
6
7
#include < QFile>
7
8
#include < QFileDialog>
8
9
#include < QHBoxLayout>
@@ -57,7 +58,11 @@ Window::Window(QWidget* parent)
57
58
this ->closeFile ();
58
59
});
59
60
this ->closeFileAction ->setDisabled (true );
61
+
60
62
fileMenu->addSeparator ();
63
+ fileMenu->addAction (this ->style ()->standardIcon (QStyle::SP_ComputerIcon), tr (" Check for updates..." ), [=] {
64
+ QDesktopServices::openUrl (QUrl (VPKTOOL_PROJECT_HOMEPAGE " /releases/latest" ));
65
+ });
61
66
fileMenu->addAction (this ->style ()->standardIcon (QStyle::SP_DialogCancelButton), tr (" Exit" ), [=] {
62
67
this ->close ();
63
68
});
You can’t perform that action at this time.
0 commit comments