diff options
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r-- | plugins/PluginUpdater/src/Options.cpp | 4 | ||||
-rw-r--r-- | plugins/PluginUpdater/src/PluginUpdater.cpp | 1 | ||||
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/plugins/PluginUpdater/src/Options.cpp b/plugins/PluginUpdater/src/Options.cpp index e9fab3d60d..aa59496ac0 100644 --- a/plugins/PluginUpdater/src/Options.cpp +++ b/plugins/PluginUpdater/src/Options.cpp @@ -67,7 +67,7 @@ INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA db_free(&dbv);
}
else
- SetDlgItemText(hwndDlg, IDC_CUSTOMURL, _T(DEFAULT_UPDATE_URL));
+ SetDlgItemText(hwndDlg, IDC_CUSTOMURL, ptrT(GetDefaultUrl()));
}
}
return TRUE;
@@ -116,7 +116,7 @@ INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA db_free(&dbv);
}
else
- SetDlgItemText(hwndDlg, IDC_CUSTOMURL, _T(DEFAULT_UPDATE_URL));
+ SetDlgItemText(hwndDlg, IDC_CUSTOMURL, ptrT(GetDefaultUrl()));
}
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
diff --git a/plugins/PluginUpdater/src/PluginUpdater.cpp b/plugins/PluginUpdater/src/PluginUpdater.cpp index 6e12f8739d..7ae7d8a48f 100644 --- a/plugins/PluginUpdater/src/PluginUpdater.cpp +++ b/plugins/PluginUpdater/src/PluginUpdater.cpp @@ -138,7 +138,6 @@ extern "C" __declspec(dllexport) int Load(void) }
else db_set_b(0, MODNAME, "UpdateMode", UPDATE_MODE_CUSTOM);
}
- else db_set_b(0, MODNAME, "UpdateMode", UPDATE_MODE_STABLE);
}
return 0;
}
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index b3fa6e2df2..2ee3402a76 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -153,7 +153,7 @@ TCHAR* GetDefaultUrl() // Check if there is url for custom mode
if (UpdateMode == UPDATE_MODE_CUSTOM) {
- url = db_get_tsa(NULL, MODNAME, "UpdateMode");
+ url = db_get_tsa(NULL, MODNAME, "UpdateUrl");
if (url == NULL) {
// No url for custom mode, reset that setting so it will be determined automatically
db_unset(NULL, MODNAME, "UpdateMode");
|