mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-09 12:57:19 +00:00
Qt: Add debug menu options for log sinks/timestamps
This commit is contained in:
parent
8f19912c64
commit
50fbaf90e6
@ -2081,6 +2081,10 @@ void MainWindow::connectSignals()
|
||||
&Settings::GetLogLevelName, &Settings::GetLogLevelDisplayName,
|
||||
Settings::DEFAULT_LOG_LEVEL, Log::Level::MaxCount);
|
||||
connect(m_ui.menuLogChannels, &QMenu::aboutToShow, this, &MainWindow::onDebugLogChannelsMenuAboutToShow);
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(nullptr, m_ui.actionLogToSystemConsole, "Logging", "LogToConsole",
|
||||
false);
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(nullptr, m_ui.actionLogToWindow, "Logging", "LogToWindow", false);
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(nullptr, m_ui.actionLogTimestamps, "Logging", "LogTimestamps", true);
|
||||
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(nullptr, m_ui.actionEnableSafeMode, "Main", "DisableAllEnhancements",
|
||||
false);
|
||||
|
@ -170,6 +170,10 @@
|
||||
<addaction name="separator"/>
|
||||
<addaction name="menuLogLevel"/>
|
||||
<addaction name="menuLogChannels"/>
|
||||
<addaction name="actionLogToSystemConsole"/>
|
||||
<addaction name="actionLogToWindow"/>
|
||||
<addaction name="actionLogToFile"/>
|
||||
<addaction name="actionLogTimestamps"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionCPUDebugger"/>
|
||||
<addaction name="separator"/>
|
||||
@ -925,6 +929,38 @@
|
||||
<string>Capture GPU Frame</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLogTimestamps">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Log Timestamps</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLogToSystemConsole">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Log To System Console</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLogToWindow">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Log To Window</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLogToFile">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Log To File</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="resources/duckstation-qt.qrc"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user