Replace some deprecated apis
This commit is contained in:
parent
c7fc90fe91
commit
d3861fe0a5
|
@ -1,6 +1,6 @@
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
cmake_minimum_required(VERSION 3.0.0)
|
cmake_minimum_required(VERSION 3.0.0)
|
||||||
project(XeRelease VERSION 16.0.0)
|
project(XeRelease VERSION 17.0.0)
|
||||||
|
|
||||||
#Add GCR_CMake
|
#Add GCR_CMake
|
||||||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../GCR_CMake/macros)
|
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../GCR_CMake/macros)
|
||||||
|
|
|
@ -97,7 +97,7 @@ void MyPrefs::btnok_clicked()
|
||||||
|
|
||||||
// Show Dialog
|
// Show Dialog
|
||||||
msg_dialog1.Init("Config File Saved!");
|
msg_dialog1.Init("Config File Saved!");
|
||||||
msg_dialog1.show();
|
msg_dialog1.present();
|
||||||
}
|
}
|
||||||
outfile.close();
|
outfile.close();
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ void MyPrefs::btnreset_clicked()
|
||||||
|
|
||||||
// Show Dialog
|
// Show Dialog
|
||||||
msg_dialog1.Init("Config Reseted!\n Press \"OK\" to save.");
|
msg_dialog1.Init("Config Reseted!\n Press \"OK\" to save.");
|
||||||
msg_dialog1.show();
|
msg_dialog1.present();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyPrefs::init_json_data(json &data1)
|
void MyPrefs::init_json_data(json &data1)
|
||||||
|
|
|
@ -276,7 +276,7 @@ void MyWin::load_config()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg_dialog.Init("The config doesn't exist!\nPlease use \"Config\" menu to set releases");
|
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);
|
check_dark.set_active(false);
|
||||||
back_id = 3;
|
back_id = 3;
|
||||||
return;
|
return;
|
||||||
|
@ -303,22 +303,22 @@ void MyWin::main_releases()
|
||||||
case Releases::LTS:
|
case Releases::LTS:
|
||||||
#ifdef DISABLE_LONGTERM_BUILD
|
#ifdef DISABLE_LONGTERM_BUILD
|
||||||
msg_dialog.Init("The longterm build is diasbled!");
|
msg_dialog.Init("The longterm build is diasbled!");
|
||||||
msg_dialog.show();
|
msg_dialog.present();
|
||||||
#else
|
#else
|
||||||
longterm(local, config_longterm.c_str(), str);
|
longterm(local, config_longterm.c_str(), str);
|
||||||
msg_dialog.Init(str);
|
msg_dialog.Init(str);
|
||||||
msg_dialog.show();
|
msg_dialog.present();
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case Releases::Stable:
|
case Releases::Stable:
|
||||||
stable(local, config_stable.c_str(), str);
|
stable(local, config_stable.c_str(), str);
|
||||||
msg_dialog.Init(str);
|
msg_dialog.Init(str);
|
||||||
msg_dialog.show();
|
msg_dialog.present();
|
||||||
break;
|
break;
|
||||||
case Releases::Dev:
|
case Releases::Dev:
|
||||||
develop(local, config_devel.c_str(), str);
|
develop(local, config_devel.c_str(), str);
|
||||||
msg_dialog.Init(str);
|
msg_dialog.Init(str);
|
||||||
msg_dialog.show();
|
msg_dialog.present();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue