mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-02-10 05:38:32 -06:00
Add status message when opening a file from the recent file list
In this way, using the Ctrl+n being n a number gives a hint of what has been done. See issue #2363
This commit is contained in:
@@ -1585,7 +1585,11 @@ void MainWindow::openRecentFile()
|
||||
read_only = true;
|
||||
}
|
||||
|
||||
fileOpen(file, false, read_only);
|
||||
if(fileOpen(file, false, read_only))
|
||||
if(read_only)
|
||||
ui->statusbar->showMessage(tr("Opened '%1' in read-only mode from recent file list").arg(file));
|
||||
else
|
||||
ui->statusbar->showMessage(tr("Opened '%1' from recent file list").arg(file));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user