mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Add placeholder File → Remote submenu + basic Preferences options
This commit is contained in:
@@ -184,7 +184,7 @@ void MainWindow::init()
|
||||
// Add keyboard shortcut for "Edit Cell" dock
|
||||
ui->viewMenu->actions().at(3)->setShortcut(QKeySequence(tr("Ctrl+E")));
|
||||
|
||||
// If we're not compiling in SQLCipher, hide it's FAQ link in the help menu
|
||||
// If we're not compiling in SQLCipher, hide its FAQ link in the help menu
|
||||
#ifndef ENABLE_SQLCIPHER
|
||||
ui->actionSqlCipherFaq->setVisible(false);
|
||||
#endif
|
||||
@@ -1674,6 +1674,10 @@ void MainWindow::reloadSettings()
|
||||
// Refresh view
|
||||
populateStructure();
|
||||
populateTable();
|
||||
|
||||
// Hide or show the File → Remote menu as needed
|
||||
QAction *remoteMenuAction = ui->menuRemote->menuAction();
|
||||
remoteMenuAction->setVisible(Settings::getSettingsValue("MainWindow", "remotemenu").toBool());
|
||||
}
|
||||
|
||||
void MainWindow::httpresponse(QNetworkReply *reply)
|
||||
@@ -2052,6 +2056,16 @@ void MainWindow::on_butSavePlot_clicked()
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionOpen_Remote_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://dbhub.io"));
|
||||
}
|
||||
|
||||
void MainWindow::on_actionSave_Remote_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://dbhub.io"));
|
||||
}
|
||||
|
||||
void MainWindow::on_actionWiki_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://github.com/sqlitebrowser/sqlitebrowser/wiki"));
|
||||
|
||||
Reference in New Issue
Block a user