mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Added system tray icon
+ Can be used for setting client size and closing the client. Will expand on by sending client alerts to the tray. Updated to push message notifactions to the toolbar Preview image: Added setting to enable/disable message popups Added functionality + updated popup message and translation + Double clicking tray icon will now bring up the app/minimize it + can now be alerted of mentions + added setting to set if you want mentions on desktop + clicking mention message will take you to the main chat + added translations for icon menu + removed maximize/minimize/restore from menu, not needed. Added disconnect + Disconnects any previous message slots/signals from the system icon message bubble
This commit is contained in:
parent
b2e032b365
commit
81a8141fe5
15 changed files with 302 additions and 120 deletions
|
|
@ -75,6 +75,8 @@ SettingsCache::SettingsCache()
|
|||
attemptAutoConnect = settings->value("server/auto_connect", 0).toBool();
|
||||
|
||||
scaleCards = settings->value("cards/scaleCards", true).toBool();
|
||||
showMessagePopups = settings->value("chat/showmessagepopups", true).toBool();
|
||||
showMentionPopups = settings->value("chat/showmentionpopups", true).toBool();
|
||||
}
|
||||
|
||||
void SettingsCache::setCardScaling(const int _scaleCards) {
|
||||
|
|
@ -82,6 +84,16 @@ void SettingsCache::setCardScaling(const int _scaleCards) {
|
|||
settings->setValue("cards/scaleCards", scaleCards);
|
||||
}
|
||||
|
||||
void SettingsCache::setShowMessagePopups(const int _showMessagePopups) {
|
||||
showMessagePopups = _showMessagePopups;
|
||||
settings->setValue("chat/showmessagepopups", showMessagePopups);
|
||||
}
|
||||
|
||||
void SettingsCache::setShowMentionPopups(const int _showMentionPopus) {
|
||||
showMentionPopups = _showMentionPopus;
|
||||
settings->setValue("chat/showmentionpopups", showMentionPopups);
|
||||
}
|
||||
|
||||
void SettingsCache::setLang(const QString &_lang)
|
||||
{
|
||||
lang = _lang;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue