void SeafileTrayIcon::setState(TrayState state) { setIcon(stateToIcon(state)); // the following two lines solving the problem of tray icon // disappear in ubuntu 13.04 #if defined(Q_WS_X11) hide(); show(); #endif if (state != STATE_DAEMON_DOWN) resetToolTip(); }
void SeafileTrayIcon::setState(TrayState state) { setIcon(stateToIcon(state)); if (state != STATE_DAEMON_DOWN) resetToolTip(); }