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