我创建了一个新的指标:
从一个定时器回调函数中,我想要更新指示器的标签。
新的标签值未应用于指示器。它仍然显示“init label”字符串。
indicator =
new ApplicationIndicator (
"sample-application", //id of the the indicator icon
"app-icon", //file name of the icon (will look for app-icon.png)
Category.ApplicationStatus,
ExecutableFolder //the folder where to look for app-icon.png
);
//Build Popup Menu for ApplicationIndicator
Menu popupMenu = new Menu ();
indicator.Label = "init label";
...
从一个定时器回调函数中,我想要更新指示器的标签。
indicator.label = "new label";
新的标签值未应用于指示器。它仍然显示“init label”字符串。
indicator.Label = "新标签";
,其中L
需要大写。 - user.dz