reopen the files that were open the last time
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user