Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
chore!: remove debug option
Browse files Browse the repository at this point in the history
We don't need this option now, since we are using the Qt Logging
Category.
  • Loading branch information
Mikhail Zolotukhin committed Feb 10, 2022
1 parent 04d7fa9 commit c30e837
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/config/bismuth_config.kcfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
<!-- Use group name provided by the KWin Scripting -->
<group name="Script-bismuth">
<!-- This is basically copy-paste from the old configuration file -->
<entry name="debug" type="Bool">
<label>Enable logging</label>
<default>false</default>
</entry>

<entry name="enableTileLayout" type="Bool">
<label>Enable/disable Tile layout</label>
<default>true</default>
Expand Down
2 changes: 1 addition & 1 deletion src/config/kconf_update/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: MIT

install(
FILES old_conf_ui.upd shortcuts_category.upd
FILES old_conf_ui.upd shortcuts_category.upd new_logger.upd
DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}
)
install(
Expand Down
9 changes: 9 additions & 0 deletions src/config/kconf_update/new_logger.upd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SPDX-FileCopyrightText: 2021 Mikhail Zolotukhin <mail@genda.life>
# SPDX-License-Identifier: MIT

# Deletes the enable debug flag
Version=5
Id=bismuth-new-logger
File=kwinrc
Group=Script-bismuth
RemoveKey=debug
2 changes: 0 additions & 2 deletions src/core/ts-proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ QJSValue TSProxy::jsConfig()
setStrArrayProp("ignoreActivity", m_config.ignoreActivity());
setStrArrayProp("ignoreScreen", m_config.ignoreScreen(), true);

setProp("debugEnabled", m_config.debug());

return configJSObject;
}

Expand Down
2 changes: 0 additions & 2 deletions src/kwinscript/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,4 @@ export interface Config {
ignoreActivity: string[];
ignoreScreen: number[];
//#endregion

debugEnabled: boolean;
}

0 comments on commit c30e837

Please sign in to comment.