Skip to content

Commit 9b6180c

Browse files
committed
V2025.8.0
1 parent cb38e1e commit 9b6180c

File tree

6 files changed

+29
-6
lines changed

6 files changed

+29
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 2025.8.0
4+
### Breaking Changes
5+
None
6+
### New APIs
7+
#### App
8+
- Added `reset()` method to `CancellationToken`
9+
### Fixes
10+
#### Events
11+
- Fixed the `operator->()` method for `ParamEventArgs`
12+
313
## 2025.7.6
414
### Breaking Changes
515
None

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ endif()
2020
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
2121

2222
#libnick Definition
23-
project ("libnick" LANGUAGES C CXX VERSION 2025.7.6 DESCRIPTION "A cross-platform base for native Nickvision applications.")
23+
project ("libnick" LANGUAGES C CXX VERSION 2025.8.0 DESCRIPTION "A cross-platform base for native Nickvision applications.")
2424
include(CMakePackageConfigHelpers)
2525
include(GNUInstallDirs)
2626
include(CTest)

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PROJECT_NAME = "libnick"
4848
# could be handy for archiving the generated documentation or if some version
4949
# control system is used.
5050

51-
PROJECT_NUMBER = "2025.7.6"
51+
PROJECT_NUMBER = "2025.8.0"
5252

5353
# Using the PROJECT_BRIEF tag one can provide an optional one line description
5454
# for a project that appears at the top of each page and should give viewer a

include/app/cancellationtoken.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ namespace Nickvision::App
3636
* @brief Cancels the token.
3737
*/
3838
void cancel();
39+
/**
40+
* @brief Resets the token to its initial state.
41+
* @brief Removes the cancel function and sets the cancelled state to false.
42+
*/
43+
void reset();
3944
/**
4045
* @brief Converts the token to a boolean.
4146
* @return True if token is cancelled, else false

manual/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
libnick provides Nickvision apps with a common set of cross-platform APIs for managing system and desktop app functionality such as network management, taskbar icons, translations, app updates, and more.
88

9-
## 2025.7.6
9+
## 2025.8.0
1010
### Breaking Changes
1111
None
1212
### New APIs
13-
None
13+
#### App
14+
- Added `reset()` method to `CancellationToken`
1415
### Fixes
15-
#### Updater
16-
- Exceptions thrown
16+
#### Events
17+
- Fixed the `operator->()` method for `ParamEventArgs`
1718

1819
## Dependencies
1920
The following are a list of dependencies used by libnick.

src/app/cancellationtoken.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ namespace Nickvision::App
4242
}
4343
}
4444

45+
void CancellationToken::reset()
46+
{
47+
std::lock_guard<std::mutex> lock{ m_mutex };
48+
m_cancelled = false;
49+
m_cancelFunction = {};
50+
}
51+
4552
CancellationToken::operator bool() const
4653
{
4754
std::lock_guard<std::mutex> lock{ m_mutex };

0 commit comments

Comments
 (0)