mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-16 13:23:52 +02:00
disable notification on busy (closes #32)
This commit is contained in:
@@ -911,6 +911,7 @@ CefSharp.BindObjectAsync(
|
||||
ref
|
||||
});
|
||||
}
|
||||
VRCXStorage.SetObject('currentUser', ref);
|
||||
return ref;
|
||||
};
|
||||
|
||||
|
||||
@@ -653,6 +653,7 @@ CefSharp.BindObjectAsync(
|
||||
|
||||
$app.methods.update = function () {
|
||||
this.currentTime = new Date().toJSON();
|
||||
this.currentUser = VRCXStorage.GetObject('currentUser') || {};
|
||||
VRCX.CpuUsage().then((cpuUsage) => {
|
||||
this.cpuUsage = cpuUsage.toFixed(2);
|
||||
});
|
||||
@@ -688,6 +689,10 @@ CefSharp.BindObjectAsync(
|
||||
}
|
||||
}
|
||||
});
|
||||
// disable notification on busy
|
||||
if (this.currentUser.status === 'busy') {
|
||||
return;
|
||||
}
|
||||
var notys = [];
|
||||
this.feeds.forEach((feed) => {
|
||||
if (feed.isFavorite) {
|
||||
|
||||
Reference in New Issue
Block a user