Fix a issue for text editor

This commit is contained in:
daleclack 2024-02-18 09:25:29 +08:00
parent 01b4bd2cf7
commit 975eae1b76
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
set(CMAKE_CXX_STANDARD 17)
cmake_minimum_required(VERSION 3.5.0)
project(My_GtkUI VERSION 5.7.0)
project(My_GtkUI VERSION 5.8.0)
#Add GCR_CMake
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../GCR_CMake/macros)

View File

@ -87,7 +87,7 @@ void MyWin::about_activated()
// Version information
char *version;
version = g_strdup_printf("5.7\nRunning Against: Gtkmm %d.%d.%d",
version = g_strdup_printf("5.8\nRunning Against: Gtkmm %d.%d.%d",
GTKMM_MAJOR_VERSION,
GTKMM_MINOR_VERSION,
GTKMM_MICRO_VERSION);

View File

@ -157,7 +157,7 @@ bool TextEditor::window_delete_event(GdkEventAny *event)
// Output json data to file
std::fstream outfile;
outfile.open("config.json", std::ios_base::out);
outfile.open("text_config.json", std::ios_base::out);
if (outfile.is_open())
{
outfile << data;