Dont check for updates the moment Check For Updates on Startup checkbox is ticked
This commit is contained in:
parent
eec6cdb8dd
commit
4dc8f4f049
1 changed files with 34 additions and 30 deletions
|
|
@ -569,9 +569,10 @@ If you like this app, consider downloading the native version for your system)")
|
||||||
#ifndef __EMSCRIPTEN__
|
#ifndef __EMSCRIPTEN__
|
||||||
void Toolbar::update_notification_check() {
|
void Toolbar::update_notification_check() {
|
||||||
if(!updateCheckerData.updateCheckDone) {
|
if(!updateCheckerData.updateCheckDone) {
|
||||||
if(updateCheckerData.checkForUpdates && !updateCheckerData.versionFile)
|
if(updateCheckerData.checkForUpdates) {
|
||||||
|
if(!updateCheckerData.versionFile)
|
||||||
updateCheckerData.versionFile = FileDownloader::download_data_from_url(UPDATE_NOTIFICATION_URL);
|
updateCheckerData.versionFile = FileDownloader::download_data_from_url(UPDATE_NOTIFICATION_URL);
|
||||||
else if(updateCheckerData.versionFile) {
|
else {
|
||||||
switch(updateCheckerData.versionFile->status) {
|
switch(updateCheckerData.versionFile->status) {
|
||||||
case FileDownloader::DownloadData::Status::IN_PROGRESS:
|
case FileDownloader::DownloadData::Status::IN_PROGRESS:
|
||||||
break;
|
break;
|
||||||
|
|
@ -604,6 +605,9 @@ void Toolbar::update_notification_check() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
updateCheckerData.updateCheckDone = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Toolbar::update_notification_gui() {
|
void Toolbar::update_notification_gui() {
|
||||||
|
|
@ -1373,7 +1377,7 @@ void Toolbar::options_menu() {
|
||||||
main.defaultCanvasBackgroundColor = convert_vec3<Vector3f>(newBackColor);
|
main.defaultCanvasBackgroundColor = convert_vec3<Vector3f>(newBackColor);
|
||||||
#ifndef __EMSCRIPTEN__
|
#ifndef __EMSCRIPTEN__
|
||||||
gui.checkbox_field("native file pick", "Use Native File Picker", &useNativeFilePicker);
|
gui.checkbox_field("native file pick", "Use Native File Picker", &useNativeFilePicker);
|
||||||
gui.checkbox_field("update notifications enable", "Check For Updates", &updateCheckerData.checkForUpdates);
|
gui.checkbox_field("update notifications enable", "Check For Updates on Startup", &updateCheckerData.checkForUpdates);
|
||||||
#endif
|
#endif
|
||||||
gui.slider_scalar_field("drag zoom slider", "Drag zoom speed", &dragZoomSpeed, 0.0, 1.0, 3);
|
gui.slider_scalar_field("drag zoom slider", "Drag zoom speed", &dragZoomSpeed, 0.0, 1.0, 3);
|
||||||
gui.slider_scalar_field("scroll zoom slider", "Scroll zoom speed", &scrollZoomSpeed, 0.0, 1.0, 3);
|
gui.slider_scalar_field("scroll zoom slider", "Scroll zoom speed", &scrollZoomSpeed, 0.0, 1.0, 3);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue