mirror of
https://github.com/KDE/krfb
synced 2026-07-01 15:31:19 -07:00
use contectMenuAboutToShow() to set the remote-control toggle action
svn path=/trunk/kdenetwork/krfb/; revision=150736
This commit is contained in:
@@ -90,8 +90,9 @@ void TrayIcon::prepareQuit() {
|
||||
quitting = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void TrayIcon::showConnectedMessage() {
|
||||
enableControlAction->setChecked(configuration->allowDesktopControl());
|
||||
|
||||
setPixmap(trayIconOpen);
|
||||
KPassivePopup2 *p = KPassivePopup2::message(i18n("Desktop Sharing"),
|
||||
@@ -112,4 +113,8 @@ void TrayIcon::showDisconnectedMessage() {
|
||||
connect(p, SIGNAL(closed()), this, SIGNAL(diconnectedMessageDisplayed()));
|
||||
}
|
||||
|
||||
void TrayIcon::contextMenuAboutToShow(KPopupMenu*) {
|
||||
enableControlAction->setChecked(configuration->allowDesktopControl());
|
||||
}
|
||||
|
||||
#include "trayicon.moc"
|
||||
|
||||
@@ -67,7 +67,11 @@ public slots:
|
||||
void showConnectedMessage();
|
||||
void showDisconnectedMessage();
|
||||
|
||||
protected:
|
||||
void contextMenuAboutToShow(KPopupMenu*);
|
||||
|
||||
private:
|
||||
|
||||
KPixmap trayIconOpen;
|
||||
KPixmap trayIconClosed;
|
||||
Configuration *configuration;
|
||||
|
||||
Reference in New Issue
Block a user