mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 19:03:23 +03:00
[748] Reorder Linux Settings
This commit is contained in:
parent
b47c2bddde
commit
d22f39496b
@ -1926,7 +1926,7 @@ class AppWindow:
|
|||||||
|
|
||||||
logger.info('Done.')
|
logger.info('Done.')
|
||||||
if restart:
|
if restart:
|
||||||
return os.execv(sys.executable, ['python'] + sys.argv)
|
os.execv(sys.executable, ['python'] + sys.argv)
|
||||||
|
|
||||||
def drag_start(self, event) -> None:
|
def drag_start(self, event) -> None:
|
||||||
"""Initiate dragging the window."""
|
"""Initiate dragging the window."""
|
||||||
|
@ -32,12 +32,6 @@ class LinuxConfig(AbstractConfig):
|
|||||||
self.app_dir_path.mkdir(exist_ok=True, parents=True)
|
self.app_dir_path.mkdir(exist_ok=True, parents=True)
|
||||||
|
|
||||||
self.default_plugin_dir_path = self.app_dir_path / 'plugins'
|
self.default_plugin_dir_path = self.app_dir_path / 'plugins'
|
||||||
if (plugdir_str := self.get_str('plugin_dir')) is None or not pathlib.Path(plugdir_str).is_dir():
|
|
||||||
self.set("plugin_dir", str(self.default_plugin_dir_path))
|
|
||||||
plugdir_str = self.default_plugin_dir
|
|
||||||
self.plugin_dir_path = pathlib.Path(plugdir_str)
|
|
||||||
self.plugin_dir_path.mkdir(exist_ok=True)
|
|
||||||
|
|
||||||
self.respath_path = pathlib.Path(__file__).parent.parent
|
self.respath_path = pathlib.Path(__file__).parent.parent
|
||||||
|
|
||||||
self.internal_plugin_dir_path = self.respath_path / 'plugins'
|
self.internal_plugin_dir_path = self.respath_path / 'plugins'
|
||||||
@ -66,6 +60,12 @@ class LinuxConfig(AbstractConfig):
|
|||||||
|
|
||||||
self.config.add_section(self.SECTION)
|
self.config.add_section(self.SECTION)
|
||||||
|
|
||||||
|
if (plugdir_str := self.get_str('plugin_dir')) is None or not pathlib.Path(plugdir_str).is_dir():
|
||||||
|
self.set("plugin_dir", str(self.default_plugin_dir_path))
|
||||||
|
plugdir_str = self.default_plugin_dir
|
||||||
|
self.plugin_dir_path = pathlib.Path(plugdir_str)
|
||||||
|
self.plugin_dir_path.mkdir(exist_ok=True)
|
||||||
|
|
||||||
if (outdir := self.get_str('outdir')) is None or not pathlib.Path(outdir).is_dir():
|
if (outdir := self.get_str('outdir')) is None or not pathlib.Path(outdir).is_dir():
|
||||||
self.set('outdir', self.home)
|
self.set('outdir', self.home)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user