tdf#120642 - GetInvoled update

UNO command is used now and period set to 180 days

Change-Id: Ib9950e75a5288e242c5a9a5c5a6a0c1dbb277e2b
Reviewed-on: https://gerrit.libreoffice.org/62949
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Tested-by: Heiko Tietze <tietze.heiko@gmail.com>
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index a5e2cb6..8463b23 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1219,7 +1219,7 @@
                // inform about the community involvement
                const sal_Int64 nLastShown = officecfg::Setup::Product::LastTimeGetInvolvedShown::get();
                const sal_Int64 nNow = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count();
                const sal_Int64 nPeriodSec(60 * 60 * 24 * 30); // 30 days in seconds
                const sal_Int64 nPeriodSec(60 * 60 * 24 * 180); // 180 days in seconds
                bool bUpdateLastTimeGetInvolvedShown = false;

                if (nLastShown == 0)
@@ -1370,14 +1370,7 @@

IMPL_LINK_NOARG(SfxViewFrame, GetInvolvedHandler, Button*, void)
{
    try
    {
        OUString sURL("https://hub.libreoffice.org/joinus/?LOlocale=" + utl::ConfigManager::getUILocale());
        sfx2::openUriExternally(sURL, false);
    }
    catch (const Exception&)
    {
    }
    GetDispatcher()->Execute(SID_GETINVOLVED);
}

IMPL_LINK(SfxViewFrame, SwitchReadOnlyHandler, Button*, pButton, void)