reopen the files that were open the last time

This commit is contained in:
2022-02-06 16:47:14 +01:00
parent 283bdae0fd
commit c470ca4ed1
6 changed files with 36 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ from PySide6.QtCore import Qt
from PySide6.QtWidgets import QDockWidget, QMessageBox
import constants
from raven.pluginregistry import PluginRegistry
from raven.plugins.ravenlog.aboutdialog import AboutDialog
from raven.mainwindow import MainWindow
from raven.pluginbase import PluginBase
@@ -75,6 +76,9 @@ class RavenLogPlugin(PluginBase):
def current_file(self) -> Optional[str]:
return self.main_window.tabs.current_file()
def get_open_files(self) -> [str]:
return self.main_window.tabs.open_files();
def update_window_title(self, title: str):
if len(title) > 0:
self.main_window.setWindowTitle(_("{0} - RavenLog").format(title))