Replace some deprecated apis

This commit is contained in:
daleclack 2023-04-09 22:41:48 +08:00
parent c7fc90fe91
commit d3861fe0a5
3 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
set(CMAKE_CXX_STANDARD 17)
cmake_minimum_required(VERSION 3.0.0)
project(XeRelease VERSION 16.0.0)
project(XeRelease VERSION 17.0.0)
#Add GCR_CMake
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../GCR_CMake/macros)

View File

@ -97,7 +97,7 @@ void MyPrefs::btnok_clicked()
// Show Dialog
msg_dialog1.Init("Config File Saved!");
msg_dialog1.show();
msg_dialog1.present();
}
outfile.close();
}
@ -112,7 +112,7 @@ void MyPrefs::btnreset_clicked()
// Show Dialog
msg_dialog1.Init("Config Reseted!\n Press \"OK\" to save.");
msg_dialog1.show();
msg_dialog1.present();
}
void MyPrefs::init_json_data(json &data1)

View File

@ -276,7 +276,7 @@ void MyWin::load_config()
else
{
msg_dialog.Init("The config doesn't exist!\nPlease use \"Config\" menu to set releases");
msg_dialog.show();
msg_dialog.present();
check_dark.set_active(false);
back_id = 3;
return;
@ -303,22 +303,22 @@ void MyWin::main_releases()
case Releases::LTS:
#ifdef DISABLE_LONGTERM_BUILD
msg_dialog.Init("The longterm build is diasbled!");
msg_dialog.show();
msg_dialog.present();
#else
longterm(local, config_longterm.c_str(), str);
msg_dialog.Init(str);
msg_dialog.show();
msg_dialog.present();
#endif
break;
case Releases::Stable:
stable(local, config_stable.c_str(), str);
msg_dialog.Init(str);
msg_dialog.show();
msg_dialog.present();
break;
case Releases::Dev:
develop(local, config_devel.c_str(), str);
msg_dialog.Init(str);
msg_dialog.show();
msg_dialog.present();
break;
}
}