Skip to content

Commit

Permalink
调整插件打印日志
Browse files Browse the repository at this point in the history
  • Loading branch information
indiff committed Apr 23, 2024
1 parent ccf94ac commit 96d73d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion QTTabBar/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ public _Keys() {
// {BindAction.NewFolder, Key.N | Key.Control | Key.Shift},
// {BindAction.NewFolder, Key.N | Key.Shift }, // 系统默认自带
// 创建标签组
{BindAction.CreateNewGroup, Key.D | Key.Control},
{BindAction.CreateNewGroup, Key.D | Key.Control},
// 添加到标签组
// {BindAction.AddToGroup, Key.D | Key.Control },
// {BindAction.AddToGroup, Key.G | Key.Control | Key.Alt },
Expand Down Expand Up @@ -1245,6 +1245,7 @@ from settingProperty in categoryType .GetProperties()
key.SetValue(setting.name,value);
}
}

}
}
}
1 change: 1 addition & 0 deletions QTTabBar/HookLibManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public static void Initialize()
{
return;
}

ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem");
string sCPUSerialNumber = "";
foreach (ManagementObject mo in searcher.Get())
Expand Down
4 changes: 3 additions & 1 deletion QTTabBar/OptionsDialog/Options08_Keys.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public override void InitializeConfig() {
}
catch (Exception ex)
{
QTUtility2.MakeErrorLog(ex, "!p.Instance.QueryShortcutKeys");
// 这里打印出插件的名称
QTUtility2.MakeErrorLog(ex, "plugin: " + p.PluginInformation.Name + "!p.Instance.QueryShortcutKeys");

}
if(actions == null) continue;
if(WorkingConfig.keys.PluginShortcuts.TryGetValue(info.PluginID, out keys)) {
Expand Down

0 comments on commit 96d73d1

Please sign in to comment.