commit
317513d5ab
@ -1,6 +1,6 @@
|
||||
# Maintainer: Gurkengewuerz <niklas@mc8051.de>
|
||||
pkgname=kshare-git
|
||||
pkgver=v5.0.3+dev
|
||||
pkgver=v5.0.4+dev
|
||||
pkgrel=1
|
||||
pkgdesc="The free and open source and cross platform screen sharing software."
|
||||
arch=('i686' 'x86_64')
|
||||
@ -15,7 +15,7 @@ sha1sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd KShare
|
||||
echo "v5.0.3+dev"
|
||||
echo "v5.0.4+dev"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Maintainer: Gurkengewuerz <niklas@mc8051.de>
|
||||
pkgname=kshare
|
||||
pkgver=v5.0.3
|
||||
pkgver=v5.0.4
|
||||
pkgrel=1
|
||||
conflicts=("kshare-git")
|
||||
pkgdesc="The free and open source and cross platform screen sharing software."
|
||||
|
@ -74,7 +74,7 @@ int main(int argc, char *argv[]) {
|
||||
a.setQuitOnLastWindowClosed(false);
|
||||
a.setApplicationName("KShare");
|
||||
a.setOrganizationName("ArsenArsen");
|
||||
a.setApplicationVersion("5.0.3");
|
||||
a.setApplicationVersion("5.0.4");
|
||||
|
||||
QString locale = QLocale::system().name();
|
||||
if (locale != "en_US") loadTranslation(locale);
|
||||
|
@ -7,6 +7,8 @@
|
||||
#include <QApplication>
|
||||
#include <QMediaPlayer>
|
||||
|
||||
QMediaPlayer *mediaPlayer = nullptr;
|
||||
|
||||
void notifications::notify(QString title, QString body, QSystemTrayIcon::MessageIcon icon) {
|
||||
if (!MainWindow::inst() || !MainWindow::inst()->valid()) return;
|
||||
notifyNolog(title, body, icon);
|
||||
@ -28,7 +30,9 @@ void notifications::playSound(notifications::Sound soundType) {
|
||||
if(!settings::settings().value("playSound", true).toBool()) return;
|
||||
|
||||
try {
|
||||
QMediaPlayer*mediaPlayer = new QMediaPlayer(MainWindow::inst());
|
||||
if (mediaPlayer == nullptr) {
|
||||
mediaPlayer = new QMediaPlayer(MainWindow::inst());
|
||||
}
|
||||
|
||||
switch (soundType) {
|
||||
case notifications::Sound::CAPTURE:
|
||||
|
Loading…
Reference in New Issue
Block a user