Additional fixes (2)

This commit is contained in:
isaak654 2021-02-13 18:36:38 +01:00 committed by GitHub
parent f0bac29ced
commit 104fdb07aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 7 deletions

View File

@ -1191,12 +1191,17 @@ void CAppPage::UpdateWebTemplates(CBox &box)
//
// replace with: Template=Opera_Bookmarks_DirectAccess
//
const CString &OperaBookmarksTemplate(L"Opera_Bookmarks_DirectAccess");
const CString &OperaBookmarks1(L"%AppData%\\Opera Software\\Opera Stable\\Bookmarks");
const CString &OperaBookmarks2(L"%AppData%\\Opera Software\\Opera Stable\\Bookmarks.bak");
const CString &OperaBookmarks3(L"%AppData%\\Opera Software\\Opera Stable\\BookmarksExtras");
UpdateTemplates2(
box, L"opera.exe", L"Opera_Bookmarks_DirectAccess",
L"%AppData%\\Opera Software\\Opera Stable\\Bookmarks",
L"%AppData%\\Opera Software\\Opera Stable\\Bookmarks.bak",
L"%AppData%\\Opera Software\\Opera Stable\\BookmarksExtras");
box, L"opera.exe", OperaBookmarksTemplate, OperaBookmarks1, OperaBookmarks2);
UpdateTemplates2(
box, L"opera.exe", OperaBookmarksTemplate, OperaBookmarks3, OperaBookmarks3);
//
// find and remove invalid OpenFilePath reference:
@ -1204,7 +1209,7 @@ void CAppPage::UpdateWebTemplates(CBox &box)
//
UpdateTemplates2(
box, L"bookmarks.exe", L"",
box, L"bookmarks.exe", L"\0",
L"bookmarks*");
}
@ -1385,10 +1390,10 @@ void CAppPage::UpdateEmailTemplates(CBox &box)
// replace with: Template=Opera_Mail
//
CString _OperaPath1(L"%AppData%\\Opera\\Opera\\mail");
CString _OperaMailPath1(L"%AppData%\\Opera\\Opera\\mail");
UpdateTemplates2(
box, L"opera.exe", L"Opera_Mail", _OperaPath1, _OperaPath1);
box, L"opera.exe", L"Opera_Mail", _OperaMailPath1, _OperaMailPath1);
}