Fix debug title
This commit is contained in:
@@ -65,7 +65,7 @@ class ConfirmScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class HelpScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ class InspectDetailsScreen(MediaWorkflowScreenBase):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
self._update_grid_layout()
|
self._update_grid_layout()
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ class MediaEditScreen(MediaWorkflowScreenBase):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
self._update_grid_layout()
|
self._update_grid_layout()
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class PatternDeleteScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
if self.__showDescriptor:
|
if self.__showDescriptor:
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ class PatternDetailsScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
if not self.__showDescriptor is None:
|
if not self.__showDescriptor is None:
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class SettingsScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class ShiftedSeasonDeleteScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
shiftedSeason: ShiftedSeason = self.__ssc.getShiftedSeason(self.__shiftedSeasonId)
|
shiftedSeason: ShiftedSeason = self.__ssc.getShiftedSeason(self.__shiftedSeasonId)
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ class ShiftedSeasonDetailsScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
if self.__shiftedSeasonId is not None:
|
if self.__shiftedSeasonId is not None:
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ class ShowDeleteScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ class ShowDetailsScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
if self.__showDescriptor is not None:
|
if self.__showDescriptor is not None:
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ class ShowsScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self) -> None:
|
def on_mount(self) -> None:
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
for show in self.__sc.getAllShows():
|
for show in self.__sc.getAllShows():
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class TagDeleteScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
self.query_one("#keylabel", Static).update(str(self.__key))
|
self.query_one("#keylabel", Static).update(str(self.__key))
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ class TagDetailsScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
if self.__key is not None:
|
if self.__key is not None:
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class TrackDeleteScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
self.query_one("#subindexlabel", Static).update(str(self.__trackDescriptor.getSubIndex()))
|
self.query_one("#subindexlabel", Static).update(str(self.__trackDescriptor.getSubIndex()))
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ class TrackDetailsScreen(Screen):
|
|||||||
|
|
||||||
def on_mount(self):
|
def on_mount(self):
|
||||||
|
|
||||||
if self.context.get('debug', False):
|
if getattr(self, 'context', {}).get('debug', False):
|
||||||
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
self.title = f"{self.app.title} - {self.__class__.__name__}"
|
||||||
|
|
||||||
self.query_one("#index_label", Static).update(
|
self.query_one("#index_label", Static).update(
|
||||||
|
|||||||
Reference in New Issue
Block a user