mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-03 18:34:28 +00:00
enable RSS, Search and Execution Log widgets before switching to them via hotkeys
This commit is contained in:
parent
2bb2d3fc89
commit
5675021895
@ -795,22 +795,34 @@ void MainWindow::displayTransferTab() const
|
|||||||
m_tabs->setCurrentWidget(m_transferListWidget);
|
m_tabs->setCurrentWidget(m_transferListWidget);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::displaySearchTab() const
|
void MainWindow::displaySearchTab()
|
||||||
{
|
{
|
||||||
if (m_searchWidget)
|
if (!m_searchWidget) {
|
||||||
m_tabs->setCurrentWidget(m_searchWidget);
|
m_ui->actionSearchWidget->setChecked(true);
|
||||||
|
displaySearchTab(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
m_tabs->setCurrentWidget(m_searchWidget);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::displayRSSTab() const
|
void MainWindow::displayRSSTab()
|
||||||
{
|
{
|
||||||
if (m_rssWidget)
|
if (!m_rssWidget) {
|
||||||
m_tabs->setCurrentWidget(m_rssWidget);
|
m_ui->actionRSSReader->setChecked(true);
|
||||||
|
displayRSSTab(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
m_tabs->setCurrentWidget(m_rssWidget);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::displayExecutionLogTab() const
|
void MainWindow::displayExecutionLogTab()
|
||||||
{
|
{
|
||||||
if (m_executionLog)
|
if (!m_executionLog) {
|
||||||
m_tabs->setCurrentWidget(m_executionLog);
|
m_ui->actionExecutionLogs->setChecked(true);
|
||||||
|
on_actionExecutionLogs_triggered(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
m_tabs->setCurrentWidget(m_executionLog);
|
||||||
}
|
}
|
||||||
|
|
||||||
// End of keyboard shortcuts slots
|
// End of keyboard shortcuts slots
|
||||||
|
@ -124,9 +124,9 @@ private slots:
|
|||||||
// Keyboard shortcuts
|
// Keyboard shortcuts
|
||||||
void createKeyboardShortcuts();
|
void createKeyboardShortcuts();
|
||||||
void displayTransferTab() const;
|
void displayTransferTab() const;
|
||||||
void displaySearchTab() const;
|
void displaySearchTab();
|
||||||
void displayRSSTab() const;
|
void displayRSSTab();
|
||||||
void displayExecutionLogTab() const;
|
void displayExecutionLogTab();
|
||||||
void focusSearchFilter();
|
void focusSearchFilter();
|
||||||
void updateGUI();
|
void updateGUI();
|
||||||
void loadPreferences(bool configureSession = true);
|
void loadPreferences(bool configureSession = true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user