mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-14 20:33:52 +02:00
Fixes
This commit is contained in:
@@ -21,7 +21,7 @@ namespace VRCX
|
||||
public override void VrInit()
|
||||
{
|
||||
if (MainForm.Instance?.Browser != null && !MainForm.Instance.Browser.IsLoading && MainForm.Instance.Browser.CanExecuteJavascriptInMainFrame)
|
||||
MainForm.Instance.Browser.ExecuteScriptAsync("window?.$pinia?.vr.vrInit");
|
||||
MainForm.Instance.Browser.ExecuteScriptAsync("window?.$pinia?.vr.vrInit();");
|
||||
}
|
||||
|
||||
public override void ToggleSystemMonitor(bool enabled)
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace VRCX
|
||||
Browser.GotFocus += (_, _) =>
|
||||
{
|
||||
if (Browser != null && !Browser.IsLoading && Browser.CanExecuteJavascriptInMainFrame)
|
||||
Browser.ExecuteScriptAsync("window?.$pinia?.vrcStatus?.onBrowserFocus");
|
||||
Browser.ExecuteScriptAsync("window?.$pinia?.vrcStatus?.onBrowserFocus();");
|
||||
};
|
||||
|
||||
JavascriptBindings.ApplyAppJavascriptBindings(Browser.JavascriptObjectRepository);
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using Newtonsoft.Json;
|
||||
using NLog;
|
||||
@@ -15,7 +15,7 @@ namespace VRCX
|
||||
{
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
private static readonly ScreenshotMetadataDatabase CacheDatabase = new(Path.Join(Program.AppDataDirectory, "metadataCache.db"));
|
||||
private static readonly Dictionary<string, ScreenshotMetadata?> MetadataCache = new();
|
||||
private static readonly ConcurrentDictionary<string, ScreenshotMetadata?> MetadataCache = new();
|
||||
|
||||
public enum ScreenshotSearchType
|
||||
{
|
||||
@@ -36,7 +36,7 @@ namespace VRCX
|
||||
|
||||
var metadataStr = CacheDatabase.GetMetadataById(id);
|
||||
var metadataObj = metadataStr == null ? null : JsonConvert.DeserializeObject<ScreenshotMetadata>(metadataStr);
|
||||
MetadataCache.Add(filePath, metadataObj);
|
||||
MetadataCache.TryAdd(filePath, metadataObj);
|
||||
|
||||
metadata = metadataObj;
|
||||
return true;
|
||||
|
||||
@@ -463,8 +463,7 @@ html.dark .x-friend-item > .detail > .extra,
|
||||
}
|
||||
|
||||
.el-select__wrapper {
|
||||
height: var(--el-component-size);
|
||||
padding: 0 12px;
|
||||
padding: 4px 12px;
|
||||
}
|
||||
|
||||
.el-table {
|
||||
|
||||
@@ -54,7 +54,6 @@
|
||||
<!-- Search bar input -->
|
||||
<el-input
|
||||
v-model="screenshotMetadataDialog.search"
|
||||
size="small"
|
||||
placeholder="Search"
|
||||
clearable
|
||||
style="width: 200px"
|
||||
@@ -62,7 +61,6 @@
|
||||
<!-- Search type dropdown -->
|
||||
<el-select
|
||||
v-model="screenshotMetadataDialog.searchType"
|
||||
size="small"
|
||||
placeholder="Search Type"
|
||||
style="width: 150px; margin-left: 10px"
|
||||
@change="screenshotMetadataSearch">
|
||||
|
||||
Reference in New Issue
Block a user