Skip to content

Commit

Permalink
release: 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapatas committed Nov 11, 2024
2 parents 05593a4 + 77d4898 commit dbbbcf5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.0.1] - 2024-11-11

### Fixed

- Crash when renaming the same profile twice

## [1.0.0] - 2024-11-05

### Added
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set(PROGRAM_DESCRIPTION "Transmitron MQTT desktop client")

set(TRANSMITRON_VERSION_MAJOR 1)
set(TRANSMITRON_VERSION_MINOR 0)
set(TRANSMITRON_VERSION_PATCH 0)
set(TRANSMITRON_VERSION_PATCH 1)
set(TRANSMITRON_VERSION_POSTFIX "")

string(CONCAT TRANSMITRON_VERSION
Expand Down
8 changes: 0 additions & 8 deletions src/GUI/Models/Profiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,6 @@ bool Profiles::Profile::save(
const Common::fs::path &config,
const Common::fs::path &cache
) {
if (!configDir.empty() && configDir != config) {
fs::rename(configDir, config);
}
if (!cacheDir.empty() && cacheDir != cache) { //
fs::rename(cacheDir, cache);
}
configDir = config;
cacheDir = cache;
fs::create_directories(config);
fs::create_directories(cache);

Expand Down
2 changes: 0 additions & 2 deletions src/GUI/Models/Profiles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ class Profiles : public FsTree
wxObjectDataPtr<Messages> messages;
wxObjectDataPtr<KnownTopics> topicsSubscribed;
wxObjectDataPtr<KnownTopics> topicsPublished;
Common::fs::path configDir;
Common::fs::path cacheDir;
};

static constexpr std::string_view
Expand Down

0 comments on commit dbbbcf5

Please sign in to comment.