2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Windows 8/8.1/10 toast notifications support added

This commit is contained in:
John Preston
2015-08-11 22:50:48 +03:00
parent 1b16064db6
commit cf9737e762
14 changed files with 889 additions and 100 deletions

View File

@@ -42,6 +42,7 @@ QString gDialogLastPath, gDialogHelperPath; // optimize QFileDialog
bool gSoundNotify = true;
bool gDesktopNotify = true;
DBINotifyView gNotifyView = dbinvShowPreview;
bool gWindowsNotifications = true;
bool gStartMinimized = false;
bool gStartInTray = false;
bool gAutoStart = false;
@@ -119,11 +120,7 @@ QString gLangFile;
bool gRetina = false;
float64 gRetinaFactor = 1.;
int32 gIntRetinaFactor = 1;
#ifdef Q_OS_MAC
bool gCustomNotifies = false;
#else
bool gCustomNotifies = true;
#endif
uint64 gInstance = 0.;
#ifdef Q_OS_WIN
@@ -163,7 +160,6 @@ SavedPeers gSavedPeers;
SavedPeersByTime gSavedPeersByTime;
void settingsParseArgs(int argc, char *argv[]) {
gCustomNotifies = true;
#ifdef Q_OS_MAC
if (QSysInfo::macVersion() < QSysInfo::MV_10_8) {
gUpdateURL = QUrl(qsl("http://tdesktop.com/mac32/tupdates/current"));