Refactor local/global save/load and show dev thanks message (#7423)

* WIP: Show dev thanks message

* Improve error messages and guard license code

* Print core command

* Allow license tests when licensing disabled by default

* Don't check invalid serial key

* Fixed typo

* Add error checking

* Use shared ptr instead of static deps

* Actually save and load the setting

* Add dev thanks vars to CI

* Show thanks message after connected

* Refactor hack-job of local/global save/load to remove coupling and use Qt events system

* Simplify config loading

* Overloads for optionals

* Fixed global config scope not loaded

* Save message state before showing to avoid multiple messages

* Update ChangeLog

* Fixed lint warnings

* Make function const

* Reduce verbosity

* Remove dead code, show version on start, tidy up lint warnings

* Make product name code safer

* Connect on enter press

* Only show server specific wording when on server

* Add emit commands

* Log info and error

* Remove deaad code

* Remove test member

* Disable start context menu action unless usable

* Show more relvant connect message

* Fixed close to tray not applied, and simplified restart core logic

* Remove redundant include
This commit is contained in:
Nick Bolton
2024-08-03 01:17:29 +01:00
committed by GitHub
parent e0c08852bf
commit 157fe818d8
50 changed files with 1525 additions and 1186 deletions

View File

@ -435,11 +435,13 @@ void Server::switchScreen(
BaseClientProxy *dst, SInt32 x, SInt32 y, bool forScreensaver) {
assert(dst != NULL);
// if trial is expired, exit the process
License license(m_args.m_serialKey);
if (license.isExpired()) {
LOG((CLOG_ERR "trial has expired, aborting server"));
exit(kExitSuccess);
if (m_args.m_serialKey.isValid) {
// if license is expired, exit the process
License license(m_args.m_serialKey);
if (license.isExpired()) {
LOG((CLOG_ERR "trial has expired, aborting server"));
exit(kExitSuccess);
}
}
#ifndef NDEBUG