- Timestamp:
- Jan 19, 2023 12:07:16 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r98103 r98124 202 202 setStateIcon(KDeviceActivity_Writing, UIIconPool::iconSet(":/hd_write_16px.png")); 203 203 setStateIcon(KDeviceActivity_Null, UIIconPool::iconSet(":/hd_disabled_16px.png")); 204 /* Configure connection: */ 205 connect(pSession, &UISession::sigStorageDeviceChange, 206 this, &UIIndicatorHardDrive::sltStorageDeviceChange); 204 207 /* Translate finally: */ 205 208 retranslateUi(); 209 } 210 211 private slots: 212 213 /** Refresh the tooltip if the device config changes at runtime (hotplugging, 214 * USB storage). */ 215 void sltStorageDeviceChange(const CMediumAttachment &attachment, bool fRemoved, bool fSilent) 216 { 217 RT_NOREF(attachment, fRemoved, fSilent); 218 updateAppearance(); 206 219 } 207 220 … … 240 253 241 254 /* Hide indicator if there are no attachments: */ 242 if (!fAttachmentsPresent) 243 hide(); 255 setVisible(fAttachmentsPresent); 244 256 245 257 /* Update tool-tip: */
Note:
See TracChangeset
for help on using the changeset viewer.