mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
dbhub: Remove remote menu, add push button to remote dock
This commit removes the File -> Remote menu entirely. The only menu item that was left was the Save to Remote item which is replaces by a button in the remote dock. The button is only enabled when a database file is opened and the user has logged in using a certificate. Clicking the button opens the same dialog and performs the same actions as before. The only difference is that we don't use the first client certificate - no matter which one it is - but instead use the client certificate that was used for logging in.
This commit is contained in:
@@ -381,7 +381,7 @@ void RemoteDatabase::push(const QString& filename, const QString& url, const QSt
|
||||
QByteArray file_data = file.readAll();
|
||||
file.close();
|
||||
|
||||
// Fetch database and save pending reply. Note that we're only supporting one active download here at the moment.
|
||||
// Fetch database and save pending reply. Note that we're only supporting one active download or upload here at the moment.
|
||||
m_currentReply = m_manager->put(request, file_data);
|
||||
m_currentReply->setProperty("type", RequestTypePush);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user