vibechat: single-instance (QLockFile) + переименование Chat→vibechat (бинарник, конфиг, hostname node name)
This commit is contained in:
1 parent
f82dca3185
commit
f347dc8edc
7 files changed
+35
-21
No files matched your search
@@ -109,7 +109,7 @@ MainWindow::MainWindow(QWidget *parent, DbManager* db, const QString& cfgPath,
|
||||
, m_recorder(nullptr)
|
||||
, m_autoPlayTimer(new QTimer(this))
|
||||
{
|
||||
setWindowTitle("Chat");
|
||||
setWindowTitle("vibechat");
|
||||
resize(900, 600);
|
||||
if (m_db) m_db->setDbPath(m_cfgDbPath);
|
||||
setupUi();
|
||||
@@ -347,7 +347,7 @@ void MainWindow::setupConnects() {
|
||||
void MainWindow::setupTray() {
|
||||
m_trayIcon = new QSystemTrayIcon(this);
|
||||
m_trayIcon->setIcon(style()->standardIcon(QStyle::SP_ComputerIcon));
|
||||
m_trayIcon->setToolTip("Chat");
|
||||
m_trayIcon->setToolTip("vibechat");
|
||||
|
||||
m_trayMenu = new QMenu(this);
|
||||
QAction *settingsAction = m_trayMenu->addAction("Settings");
|
||||
@@ -378,7 +378,7 @@ void MainWindow::setupTray() {
|
||||
void MainWindow::closeEvent(QCloseEvent *event) {
|
||||
DEBUG_DEBUG(DEBUG_CATEGORY_GENERAL, "MainWindow: closeEvent — hiding to tray");
|
||||
hide();
|
||||
m_trayIcon->showMessage("Chat", "Application minimized to tray.",
|
||||
m_trayIcon->showMessage("vibechat", "Application minimized to tray.",
|
||||
QSystemTrayIcon::Information, 2000);
|
||||
event->ignore();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user