diff options
author | George Hazan <ghazan@miranda.im> | 2022-01-12 20:01:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-01-12 20:01:11 +0300 |
commit | 5f5eb8eff1b7f7eb7bf21ed25cf14db6e33f2e52 (patch) | |
tree | b4bf6702e4fcd0fa16369bac898682558502eca5 /plugins/CrashDumper/src/ui.cpp | |
parent | f8cfe24d1b96765f628e086da2023755b2577675 (diff) |
fixes #2993 (CrashDumper: drop vi.miranda-ng.org support)
Diffstat (limited to 'plugins/CrashDumper/src/ui.cpp')
-rw-r--r-- | plugins/CrashDumper/src/ui.cpp | 47 |
1 files changed, 4 insertions, 43 deletions
diff --git a/plugins/CrashDumper/src/ui.cpp b/plugins/CrashDumper/src/ui.cpp index 3fa9ce6046..0959d9d8d6 100644 --- a/plugins/CrashDumper/src/ui.cpp +++ b/plugins/CrashDumper/src/ui.cpp @@ -162,8 +162,7 @@ INT_PTR ViewVersionInfo(WPARAM wParam, LPARAM) class COptDialog : public CDlgBase
{
- CCtrlEdit m_edtUserName, m_edtPass;
- CCtrlCheck m_chkAutoUpload, m_chkClassicDates, m_chkRepSubfolder, m_chkCatchCrashes, m_chkSuccessPopups;
+ CCtrlCheck m_chkClassicDates, m_chkRepSubfolder, m_chkCatchCrashes, m_chkSuccessPopups;
CCtrlLabel m_lblRestart;
void COptDialog::OnCatchCrashesChange(CCtrlCheck*)
@@ -179,16 +178,12 @@ class COptDialog : public CDlgBase public:
COptDialog() :
CDlgBase(g_plugin, IDD_OPTIONS),
- m_edtUserName(this, IDC_USERNAME),
- m_edtPass(this, IDC_PASSWORD),
- m_chkAutoUpload(this, IDC_UPLOADCHN),
m_chkCatchCrashes(this, IDC_CATCHCRASHES),
m_chkClassicDates(this, IDC_CLASSICDATES),
m_chkRepSubfolder(this, IDC_DATESUBFOLDER),
m_chkSuccessPopups(this, IDC_SUCCESSPOPUPS),
m_lblRestart(this, IDC_RESTARTNOTE)
{
- CreateLink(m_chkAutoUpload, g_plugin.bUploadChanged);
CreateLink(m_chkCatchCrashes, g_plugin.bCatchCrashes);
CreateLink(m_chkClassicDates, g_plugin.bClassicDates);
CreateLink(m_chkRepSubfolder, g_plugin.bUseSubFolder);
@@ -201,33 +196,12 @@ public: {
CDlgBase::OnInitDialog();
- DBVARIANT dbv;
- if (g_plugin.getString("Username", &dbv) == 0) {
- m_edtUserName.SetTextA(dbv.pszVal);
- db_free(&dbv);
- }
- if (g_plugin.getString("Password", &dbv) == 0) {
- m_edtPass.SetTextA(dbv.pszVal);
- db_free(&dbv);
- }
-
if (!g_plugin.bCatchCrashes)
m_chkRepSubfolder.Disable();
if (g_plugin.bNeedRestart)
m_lblRestart.Show();
return true;
}
-
- bool COptDialog::OnApply()
- {
- char szSetting[100];
- m_edtUserName.GetTextA(szSetting, _countof(szSetting));
- g_plugin.setString("Username", szSetting);
-
- m_edtPass.GetTextA(szSetting, _countof(szSetting));
- g_plugin.setString("Password", szSetting);
- return true;
- }
};
int OptionsInit(WPARAM wParam, LPARAM)
@@ -252,22 +226,9 @@ LRESULT CALLBACK DlgProcPopup(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) break;
case WM_COMMAND:
- switch ((INT_PTR)PUGetPluginData(hWnd)) {
- case 0:
- OpenAuthUrl("https://vi.miranda-ng.org/detail/%s");
- break;
-
- case 1:
- OpenAuthUrl("https://vi.miranda-ng.org/global/%s");
- break;
-
- case 3:
- wchar_t path[MAX_PATH];
- mir_snwprintf(path, L"%s\\VersionInfo.txt", VersionInfoFolder);
- ShellExecute(nullptr, L"open", path, nullptr, nullptr, SW_SHOW);
- break;
-
- }
+ wchar_t path[MAX_PATH];
+ mir_snwprintf(path, L"%s\\VersionInfo.txt", VersionInfoFolder);
+ ShellExecute(nullptr, L"open", path, nullptr, nullptr, SW_SHOW);
PUDeletePopup(hWnd);
break;
|